mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix decimals issue
This commit is contained in:
parent
b44f1f802a
commit
a7c0cff63c
@ -247,7 +247,11 @@ describe('Pool unit test', () => {
|
||||
amountsInOutMaxFee
|
||||
)
|
||||
expect(await balance(web3, erc20Token, user1)).to.equal(
|
||||
tx.events.LOG_SWAP.returnValues.tokenAmountOut
|
||||
await unitsToAmount(
|
||||
web3,
|
||||
erc20Token,
|
||||
tx.events.LOG_SWAP.returnValues.tokenAmountOut
|
||||
)
|
||||
)
|
||||
})
|
||||
|
||||
@ -715,7 +719,11 @@ describe('Pool unit test', () => {
|
||||
amountsInOutMaxFee
|
||||
)
|
||||
expect(await balance(web3, erc20Token, user1)).to.equal(
|
||||
tx.events.LOG_SWAP.returnValues.tokenAmountOut
|
||||
await unitsToAmount(
|
||||
web3,
|
||||
erc20Token,
|
||||
tx.events.LOG_SWAP.returnValues.tokenAmountOut
|
||||
)
|
||||
)
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user