Created
March 24, 2016 15:08
-
-
Save LefterisJP/5e1570aa11bfaa068034 to your computer and use it in GitHub Desktop.
Checking refund balance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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