1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

test datatoken.getDecimals() function

This commit is contained in:
Miquel A. Cabot 2022-04-18 17:48:30 +02:00
parent d73790d775
commit 3c38fa9eb2

View File

@ -517,4 +517,9 @@ describe('Datatoken', () => {
const key = web3.utils.keccak256(datatokenAddress)
assert((await nftDatatoken.getData(nftAddress, key)) === OldData)
})
it('#getDecimals - should return the number of decimals of the datatoken', async () => {
const decimals = await datatoken.getDecimals(datatokenAddress)
assert(decimals === DECIMALS.toString())
})
})