diff options
author | Fabio Berger <me@fabioberger.com> | 2017-08-17 06:44:39 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-08-17 06:44:39 +0800 |
commit | 20045a438ac60e319f23df9a199d81cfe655049b (patch) | |
tree | 4d5124be8bfe269a23c54eff516184ee005b6510 /src/contract_wrappers | |
parent | 2e668a771a5533182cfe010f022ab4c1f9afc1ba (diff) | |
download | dexon-sol-tools-20045a438ac60e319f23df9a199d81cfe655049b.tar dexon-sol-tools-20045a438ac60e319f23df9a199d81cfe655049b.tar.gz dexon-sol-tools-20045a438ac60e319f23df9a199d81cfe655049b.tar.bz2 dexon-sol-tools-20045a438ac60e319f23df9a199d81cfe655049b.tar.lz dexon-sol-tools-20045a438ac60e319f23df9a199d81cfe655049b.tar.xz dexon-sol-tools-20045a438ac60e319f23df9a199d81cfe655049b.tar.zst dexon-sol-tools-20045a438ac60e319f23df9a199d81cfe655049b.zip |
remove unnecessary assertion and add regression test
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/token_wrapper.ts | 1 |
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); |