diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-07-12 09:22:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 09:22:22 +0800 |
commit | 5fe128ccf6aa71494b71c6a8ecb07c3a6145140f (patch) | |
tree | 835a231e28ed0fff4d70e98b46940b5bfe3b4ffa /src/contract_wrappers/contract_wrapper.ts | |
parent | 89236fff410563c0d290e0a8090864cf21bae62e (diff) | |
parent | 41f0be48f1360ca6241b399593212cdf767c2db0 (diff) | |
download | dexon-sol-tools-5fe128ccf6aa71494b71c6a8ecb07c3a6145140f.tar dexon-sol-tools-5fe128ccf6aa71494b71c6a8ecb07c3a6145140f.tar.gz dexon-sol-tools-5fe128ccf6aa71494b71c6a8ecb07c3a6145140f.tar.bz2 dexon-sol-tools-5fe128ccf6aa71494b71c6a8ecb07c3a6145140f.tar.lz dexon-sol-tools-5fe128ccf6aa71494b71c6a8ecb07c3a6145140f.tar.xz dexon-sol-tools-5fe128ccf6aa71494b71c6a8ecb07c3a6145140f.tar.zst dexon-sol-tools-5fe128ccf6aa71494b71c6a8ecb07c3a6145140f.zip |
Merge pull request #104 from 0xProject/ts-2.4
Update to typescript@2.4
Diffstat (limited to 'src/contract_wrappers/contract_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/contract_wrapper.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/contract_wrapper.ts b/src/contract_wrappers/contract_wrapper.ts index f9c1bc1cf..1cce1b235 100644 --- a/src/contract_wrappers/contract_wrapper.ts +++ b/src/contract_wrappers/contract_wrapper.ts @@ -28,7 +28,7 @@ export class ContractWrapper { if (!_.isUndefined(contractAddress)) { const doesContractExist = await this._web3Wrapper.doesContractExistAtAddressAsync(contractAddress); if (!doesContractExist) { - throw new Error(ZeroExError.CONTRACT_DOES_NOT_EXIST); + throw new Error(ZeroExError.ContractDoesNotExist); } } @@ -38,10 +38,10 @@ export class ContractWrapper { } catch (err) { const errMsg = `${err}`; if (_.includes(errMsg, 'not been deployed to detected network')) { - throw new Error(ZeroExError.CONTRACT_DOES_NOT_EXIST); + throw new Error(ZeroExError.ContractDoesNotExist); } else { utils.consoleLog(`Notice: Error encountered: ${err} ${err.stack}`); - throw new Error(ZeroExError.UNHANDLED_ERROR); + throw new Error(ZeroExError.UnhandledError); } } } |