aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-08-17 06:34:09 +0800
committerFabio Berger <me@fabioberger.com>2017-08-17 06:34:09 +0800
commita32b94bac440f127c0b984d7a1e763cf4cb86792 (patch)
tree22aa4b13e067017220c579958bcc8225a5b22a84 /src/contract_wrappers
parent6ec3c8728e639b74bd94ce222097fd0841bb0399 (diff)
downloaddexon-sol-tools-a32b94bac440f127c0b984d7a1e763cf4cb86792.tar
dexon-sol-tools-a32b94bac440f127c0b984d7a1e763cf4cb86792.tar.gz
dexon-sol-tools-a32b94bac440f127c0b984d7a1e763cf4cb86792.tar.bz2
dexon-sol-tools-a32b94bac440f127c0b984d7a1e763cf4cb86792.tar.lz
dexon-sol-tools-a32b94bac440f127c0b984d7a1e763cf4cb86792.tar.xz
dexon-sol-tools-a32b94bac440f127c0b984d7a1e763cf4cb86792.tar.zst
dexon-sol-tools-a32b94bac440f127c0b984d7a1e763cf4cb86792.zip
Remove isUserAddressAvailable assertion from getBalanceAsync and add regression test
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/token_wrapper.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts
index 9c073f30b..477daec59 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -45,7 +45,6 @@ export class TokenWrapper extends ContractWrapper {
public async getBalanceAsync(tokenAddress: string, ownerAddress: string): Promise<BigNumber.BigNumber> {
assert.isETHAddressHex('ownerAddress', ownerAddress);
assert.isETHAddressHex('tokenAddress', tokenAddress);
- await assert.isUserAddressAvailableAsync(this._web3Wrapper);
const tokenContract = await this._getTokenContractAsync(tokenAddress);
let balance = await tokenContract.balanceOf.call(ownerAddress);