difftreelog
test also check flipper balance in sponsoring
in: master
1 file changed
tests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth205 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);207208 const newFlipperBalance = await web3.eth.getBalance(flipper.options.address);209 expect(newFlipperBalance).to.be.not.equals(originalFlipperBalance);207210208 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