diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 15:11:58 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 15:23:43 +0800 |
commit | 5bdfad9b415fc183102d5f5a7f3a08782921f003 (patch) | |
tree | dbb5635bf678e59126f07bd69364cfda43374a1c /packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts | |
parent | 3c5812c5d20e98475ef8ce47b949596656f46a0d (diff) | |
download | dexon-sol-tools-5bdfad9b415fc183102d5f5a7f3a08782921f003.tar dexon-sol-tools-5bdfad9b415fc183102d5f5a7f3a08782921f003.tar.gz dexon-sol-tools-5bdfad9b415fc183102d5f5a7f3a08782921f003.tar.bz2 dexon-sol-tools-5bdfad9b415fc183102d5f5a7f3a08782921f003.tar.lz dexon-sol-tools-5bdfad9b415fc183102d5f5a7f3a08782921f003.tar.xz dexon-sol-tools-5bdfad9b415fc183102d5f5a7f3a08782921f003.tar.zst dexon-sol-tools-5bdfad9b415fc183102d5f5a7f3a08782921f003.zip |
Remove ContractNotFound errors in contract-wrappers
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts index 8bb27369f..d5775208e 100644 --- a/packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts @@ -197,13 +197,6 @@ export class EtherTokenWrapper extends ContractWrapper { if (!_.isUndefined(etherTokenContract)) { return etherTokenContract; } - // TODO(albrow): Do we really still need this check? The default error - // looks okay to me. - // TODO(albrow): Should we normalize the token address here? - const doesContractExist = await this._web3Wrapper.doesContractExistAtAddressAsync(etherTokenAddress); - if (!doesContractExist) { - throw new Error(ContractWrappersError.EtherTokenContractDoesNotExist); - } const contractInstance = new WETH9Contract( this.abi, etherTokenAddress, |