mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
fix(order): fixing missing ticker
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user