aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-08-17 06:44:39 +0800
committerFabio Berger <me@fabioberger.com>2017-08-17 06:44:39 +0800
commit20045a438ac60e319f23df9a199d81cfe655049b (patch)
tree4d5124be8bfe269a23c54eff516184ee005b6510 /src
parent2e668a771a5533182cfe010f022ab4c1f9afc1ba (diff)
downloaddexon-0x-contracts-20045a438ac60e319f23df9a199d81cfe655049b.tar.gz
dexon-0x-contracts-20045a438ac60e319f23df9a199d81cfe655049b.tar.zst
dexon-0x-contracts-20045a438ac60e319f23df9a199d81cfe655049b.zip
remove unnecessary assertion and add regression test
Diffstat (limited to 'src')
-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 477daec59..9b529f64f 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -89,7 +89,6 @@ export class TokenWrapper extends ContractWrapper {
public async getAllowanceAsync(tokenAddress: string, ownerAddress: string, spenderAddress: string) {
assert.isETHAddressHex('ownerAddress', ownerAddress);
assert.isETHAddressHex('tokenAddress', tokenAddress);
- await assert.isUserAddressAvailableAsync(this._web3Wrapper);
const tokenContract = await this._getTokenContractAsync(tokenAddress);
let allowanceInBaseUnits = await tokenContract.allowance.call(ownerAddress, spenderAddress);