(address, tokenAddress)
| 613 | |
| 614 | // Helper functions |
| 615 | async function getBalance(address, tokenAddress) { |
| 616 | if (tokenAddress !== gbl.constants.ADDRESS_ZERO) { |
| 617 | let token = new web3.eth.Contract(abis.erc20(), tokenAddress); |
| 618 | return await token.methods.balanceOf(address).call(); |
| 619 | } else { |
| 620 | return await web3.eth.getBalance(address); |
| 621 | } |
| 622 | } |
| 623 | |
| 624 | function logPushResults(receipt) { |
| 625 | let successEventName; |
no outgoing calls
no test coverage detected