* signing prefix added * Minor improvement * Tests changed * Successfully tested * Minor improvements * Minor improvements * Revert "Dangling commas are now required. (#1359)" This reverts commita6889776f4. * fixex #1355 * linting * suggested changes * Update BreakInvariantBounty.test.js (cherry picked from commit6ae041bca6)
11 lines
270 B
JavaScript
11 lines
270 B
JavaScript
async function balanceDifference (account, promise) {
|
|
const balanceBefore = web3.eth.getBalance(account);
|
|
await promise();
|
|
const balanceAfter = web3.eth.getBalance(account);
|
|
return balanceAfter.minus(balanceBefore);
|
|
}
|
|
|
|
module.exports = {
|
|
balanceDifference,
|
|
};
|