mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
openzeppelin-contracts/test/helpers/balanceDifference.js

10 lines
278 B

async function balanceDifference (account, promiseFunc) {
const balanceBefore = web3.eth.getBalance(account);
await promiseFunc();
const balanceAfter = web3.eth.getBalance(account);
return balanceAfter.minus(balanceBefore);
}
module.exports = {
balanceDifference,
};