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.
|
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,
|
|
};
|
|
|