git.delta.rocks / unique-network / refs/commits / 784fe46a4598

difftreelog

test also check flipper balance in sponsoring

Yaroslav Bolyukin2022-05-04parent: #6319aff.patch.diff
in: master

1 file changed

modifiedtests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth
205 expect(await flipper.methods.getValue().call()).to.be.true;205 expect(await flipper.methods.getValue().call()).to.be.true;
206 expect(await web3.eth.getBalance(caller)).to.be.equals(originalCallerBalance);206 expect(await web3.eth.getBalance(caller)).to.be.equals(originalCallerBalance);
207
208 const newFlipperBalance = await web3.eth.getBalance(flipper.options.address);
209 expect(newFlipperBalance).to.be.not.equals(originalFlipperBalance);
207210
208 await flipper.methods.flip().send({from: caller});211 await flipper.methods.flip().send({from: caller});
212 expect(await web3.eth.getBalance(flipper.options.address)).to.be.equal(newFlipperBalance);
209 expect(await web3.eth.getBalance(caller)).to.be.not.equals(originalCallerBalance);213 expect(await web3.eth.getBalance(caller)).to.be.not.equals(originalCallerBalance);
210 });214 });
211215