From 8f5889ccacc990ba08d1af9f956d53ba27135233 Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Wed, 30 Nov 2022 16:49:54 +0000 Subject: [PATCH] Test fix: use send instead of call --- --- a/tests/src/eth/collectionAdmin.test.ts +++ b/tests/src/eth/collectionAdmin.test.ts @@ -80,13 +80,12 @@ const collectionEvm = helper.ethNativeContract.collection(collectionAddress, 'nft', owner, true); // cannot mint while not admin - await expect(collectionEvm.methods.mint(owner).call({from: adminEth})).to.be.rejectedWith('PublicMintingNotAllowed'); + await expect(collectionEvm.methods.mint(owner).send({from: adminEth})).to.be.rejectedWith('PublicMintingNotAllowed'); // admin can mint token: await collectionEvm.methods.addCollectionAdminCross(adminCrossEth).send(); - const result = await collectionEvm.methods.mint(owner).call({from: adminEth}); + await collectionEvm.methods.mint(owner).send({from: adminEth}); - // TODO: Why fail expect(await helper.collection.getLastTokenId(collectionId)).to.eq(1); }); -- gitstuff