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:
parent
d73790d775
commit
3c38fa9eb2
@ -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())
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user