From 0c73e0af9458686ec453a08861b11163c1162b9e Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Sat, 10 Dec 2022 06:42:19 +0000 Subject: [PATCH] Fix test --- --- a/tests/src/eth/collectionLimits.test.ts +++ b/tests/src/eth/collectionLimits.test.ts @@ -116,8 +116,7 @@ .setCollectionLimit(CollectionLimits.TransferEnabled, true, 3) .call()).to.be.rejectedWith(`can't convert value to boolean "${invalidLimits.transfersEnabled}"`); - await expect(collectionEvm.methods - .setCollectionLimit(CollectionLimits.SponsoredDataSize, true, -1) - .call()).to.be.rejectedWith('Error: value out-of-bounds (argument="value", value=-1, code=INVALID_ARGUMENT'); + expect(() => collectionEvm.methods + .setCollectionLimit(CollectionLimits.SponsoredDataSize, true, -1).send()).to.throw('value out-of-bounds'); })); }); -- gitstuff