diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-10 05:30:32 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-10 05:30:40 +0800 |
commit | 6aa91d89e0fd02601f7e4df86e8499edc00316ce (patch) | |
tree | 18ce9ec7e9ab6e2c732c301572379ce24f252936 /src/contract_wrappers/token_wrapper.ts | |
parent | ecc54b07c70c9f191a0eb0dece8137f088250a41 (diff) | |
download | dexon-sol-tools-6aa91d89e0fd02601f7e4df86e8499edc00316ce.tar dexon-sol-tools-6aa91d89e0fd02601f7e4df86e8499edc00316ce.tar.gz dexon-sol-tools-6aa91d89e0fd02601f7e4df86e8499edc00316ce.tar.bz2 dexon-sol-tools-6aa91d89e0fd02601f7e4df86e8499edc00316ce.tar.lz dexon-sol-tools-6aa91d89e0fd02601f7e4df86e8499edc00316ce.tar.xz dexon-sol-tools-6aa91d89e0fd02601f7e4df86e8499edc00316ce.tar.zst dexon-sol-tools-6aa91d89e0fd02601f7e4df86e8499edc00316ce.zip |
Remove redundant assertions
Diffstat (limited to 'src/contract_wrappers/token_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/token_wrapper.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index c479aa30f..dd87ebc9f 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -72,7 +72,6 @@ export class TokenWrapper extends ContractWrapper { await assert.isSenderAddressAsync('ownerAddress', ownerAddress, this._web3Wrapper); assert.isETHAddressHex('spenderAddress', spenderAddress); assert.isETHAddressHex('tokenAddress', tokenAddress); - assert.isBigNumber('amountInBaseUnits', amountInBaseUnits); assert.isValidBaseUnitAmount('amountInBaseUnits', amountInBaseUnits); const tokenContract = await this._getTokenContractAsync(tokenAddress); @@ -153,7 +152,6 @@ export class TokenWrapper extends ContractWrapper { amountInBaseUnits: BigNumber): Promise<string> { assert.isETHAddressHex('ownerAddress', ownerAddress); assert.isETHAddressHex('tokenAddress', tokenAddress); - assert.isBigNumber('amountInBaseUnits', amountInBaseUnits); assert.isValidBaseUnitAmount('amountInBaseUnits', amountInBaseUnits); const proxyAddress = await this._getTokenTransferProxyAddressAsync(); @@ -189,7 +187,6 @@ export class TokenWrapper extends ContractWrapper { assert.isETHAddressHex('tokenAddress', tokenAddress); await assert.isSenderAddressAsync('fromAddress', fromAddress, this._web3Wrapper); assert.isETHAddressHex('toAddress', toAddress); - assert.isBigNumber('amountInBaseUnits', amountInBaseUnits); assert.isValidBaseUnitAmount('amountInBaseUnits', amountInBaseUnits); const tokenContract = await this._getTokenContractAsync(tokenAddress); @@ -224,7 +221,6 @@ export class TokenWrapper extends ContractWrapper { assert.isETHAddressHex('fromAddress', fromAddress); assert.isETHAddressHex('toAddress', toAddress); await assert.isSenderAddressAsync('senderAddress', senderAddress, this._web3Wrapper); - assert.isBigNumber('amountInBaseUnits', amountInBaseUnits); assert.isValidBaseUnitAmount('amountInBaseUnits', amountInBaseUnits); const tokenContract = await this._getTokenContractAsync(tokenAddress); |