1
0
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:
Miquel A. Cabot 2022-05-26 19:04:24 +02:00
parent b44f1f802a
commit a7c0cff63c

View File

@ -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
)
)
})