git.delta.rocks / unique-network / refs/commits / c46ad55c70fa

difftreelog

test missing send() for flip() tx

Yaroslav Bolyukin2021-08-26parent: #ffea28d.patch.diff
in: master

1 file changed

modifiedtests/src/eth/base.test.tsdiffbeforeafterboth
8 const deployer = await createEthAccountWithBalance(api, web3);8 const deployer = await createEthAccountWithBalance(api, web3);
9 const flipper = await deployFlipper(web3 as any, deployer);9 const flipper = await deployFlipper(web3 as any, deployer);
1010
11 const cost = await recordEthFee(api, deployer, () => flipper.methods.flip());11 const cost = await recordEthFee(api, deployer, () => flipper.methods.flip().send({from: deployer}));
12 expect(cost < BigInt(0.2 * Number(UNIQUE))).to.be.true;12 expect(cost < BigInt(0.2 * Number(UNIQUE))).to.be.true;
13 });13 });
1414