From 223e38beb668fb248a2b21d86609314dfe16f876 Mon Sep 17 00:00:00 2001 From: mariacarmina Date: Fri, 20 Dec 2024 16:50:35 +0200 Subject: [PATCH] Fix mint on fre, updated dispenser params. --- src/test/integration/pricing.test.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/test/integration/pricing.test.ts b/src/test/integration/pricing.test.ts index 171083711..a97df5acd 100644 --- a/src/test/integration/pricing.test.ts +++ b/src/test/integration/pricing.test.ts @@ -137,7 +137,7 @@ describe('Publish pricing scehmas and assert ddo stats', () => { ethers.parseUnits('18', 'ether'), ethers.parseUnits('1', 'ether'), ethers.parseUnits('0', 'ether'), - ethers.parseUnits('1', 'ether') + ethers.parseUnits('0', 'ether') ] } ) @@ -256,16 +256,12 @@ describe('Publish pricing scehmas and assert ddo stats', () => { }) it('should attach a dispenser', async () => { - const dispenserParams: any = { - maxTokens: '1', - maxBalance: '1', - withMint: true - } const tx = await datatokenContract.createDispenser( - datatokenAddress, - await publisherAccount.getAddress(), artifactsAddresses.Dispenser, - dispenserParams + ethers.parseUnits('1', 'ether'), + ethers.parseUnits('1', 'ether'), + true, + ZeroAddress ) assert(tx, 'Cannot create dispenser') const txReceipt = await tx.wait()