Skip to content

Instantly share code, notes, and snippets.

@LefterisJP
Created March 24, 2016 15:08
Show Gist options
  • Save LefterisJP/5e1570aa11bfaa068034 to your computer and use it in GitHub Desktop.
Save LefterisJP/5e1570aa11bfaa068034 to your computer and use it in GitHub Desktop.
Checking refund balance
var eth_balance_after_refund = [];
for (i = 0; i < eth.accounts.length; i++) {
eth_balance_after_refund.push(web3.fromWei(eth.getBalance(eth.accounts[i])));
}
addToTest('eth_balance_after_refund', eth_balance_after_refund);
var refund = [];
for (i = 0; i < eth.accounts.length; i++) {
refund.push((bigDiffRound(
testMap['eth_balance_after_refund'][i],
testMap['eth_balance_before_refund'][i]
)));
}
addToTest('refund', refund);
testResults();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment