fix(order): fixing missing ticker

This commit is contained in:
Chris Troutner
2022-10-02 13:46:19 -07:00
parent fb999c7bd4
commit 3482540fc8
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ class OrderLib {
// const tokenData = await this.adapters.wallet.bchWallet.getTxData([entryObj.tokenId]) // const tokenData = await this.adapters.wallet.bchWallet.getTxData([entryObj.tokenId])
const tokenData = await this.retryQueue.addToQueue(this.adapters.wallet.bchWallet.getTxData, [entryObj.tokenId]) const tokenData = await this.retryQueue.addToQueue(this.adapters.wallet.bchWallet.getTxData, [entryObj.tokenId])
// console.log(`tokenData: ${JSON.stringify(tokenData, null, 2)}`) // console.log(`tokenData: ${JSON.stringify(tokenData, null, 2)}`)
entryObj.ticker = tokenData[0].tokenTicker orderEntity.ticker = tokenData[0].tokenTicker
// Move the tokens to holding address. // Move the tokens to holding address.
const moveObj = { const moveObj = {
+2 -1
View File
@@ -103,7 +103,8 @@ describe('#order-use-case', () => {
buyOrSell: 'sell', buyOrSell: 'sell',
rateInBaseUnit: 1000, rateInBaseUnit: 1000,
minUnitsToExchange: 1250, minUnitsToExchange: 1250,
numTokens: 1 numTokens: 1,
ticker: 'TEST'
} }
// Mock dependencies and force expected code path // Mock dependencies and force expected code path