diff --git a/test/integration/ocean/AssetOwners.test.ts b/test/integration/ocean/AssetOwners.test.ts index 1c93405..a4c18d4 100644 --- a/test/integration/ocean/AssetOwners.test.ts +++ b/test/integration/ocean/AssetOwners.test.ts @@ -86,7 +86,7 @@ describe('Asset Owners', () => { // Granting access try { await account2.requestTokens( - +metadata.main.price * 10 ** -(await ocean.keeper.token.decimals()) + parseInt((+metadata.main.price * 10 ** -(await ocean.keeper.token.decimals())).toString()) ) } catch {} diff --git a/test/integration/ocean/Compute.test.ts b/test/integration/ocean/Compute.test.ts index e566633..61955b5 100644 --- a/test/integration/ocean/Compute.test.ts +++ b/test/integration/ocean/Compute.test.ts @@ -70,8 +70,8 @@ describe('Compute', () => { const steps = [] try { await account.requestTokens( - +computeService.attributes.main.price * - 10 ** -(await ocean.keeper.token.decimals()) + parseInt((+computeService.attributes.main.price * + 10 ** -(await ocean.keeper.token.decimals())).toString()) ) agreementId = await ocean.compute diff --git a/test/integration/ocean/ConsumeAsset.test.ts b/test/integration/ocean/ConsumeAsset.test.ts index ca8b8eb..fc0f555 100644 --- a/test/integration/ocean/ConsumeAsset.test.ts +++ b/test/integration/ocean/ConsumeAsset.test.ts @@ -46,7 +46,7 @@ describe('Consume Asset', () => { it('should be able to request tokens for consumer', async () => { const initialBalance = (await consumer.getBalance()).ocn const claimedTokens = - +metadata.main.price * 10 ** -(await ocean.keeper.token.decimals()) + parseInt((+metadata.main.price * 10 ** -(await ocean.keeper.token.decimals())).toString()) try { await consumer.requestTokens(claimedTokens) diff --git a/test/integration/ocean/ConsumeAssetBrizo.test.ts b/test/integration/ocean/ConsumeAssetBrizo.test.ts index f3007a1..93d58a8 100644 --- a/test/integration/ocean/ConsumeAssetBrizo.test.ts +++ b/test/integration/ocean/ConsumeAssetBrizo.test.ts @@ -54,7 +54,7 @@ describe('Consume Asset (Brizo)', () => { try { await consumer.requestTokens( - +metadata.main.price * 10 ** -(await ocean.keeper.token.decimals()) + parseInt((+metadata.main.price * 10 ** -(await ocean.keeper.token.decimals())).toString()) ) agreementId = await ocean.assets diff --git a/test/integration/ocean/ConsumeBigAsset.test.ts b/test/integration/ocean/ConsumeBigAsset.test.ts index 015d802..17a7997 100644 --- a/test/integration/ocean/ConsumeBigAsset.test.ts +++ b/test/integration/ocean/ConsumeBigAsset.test.ts @@ -52,7 +52,7 @@ xdescribe('Consume Asset (Large size)', () => { it('should order the asset', async () => { try { await consumer.requestTokens( - +metadata.main.price * 10 ** -(await ocean.keeper.token.decimals()) + parseInt((+metadata.main.price * 10 ** -(await ocean.keeper.token.decimals())).toString()) ) } catch {}