diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-30 02:18:15 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-30 02:18:15 +0800 |
commit | 9395b53af424be536dc7a558de80f54db7815a8c (patch) | |
tree | ec40f470b1a53541f9fee6a498052103ba42c167 /src | |
parent | f6ec388916ebdd0c67f545125d67ca5a7af49131 (diff) | |
download | dexon-0x-contracts-9395b53af424be536dc7a558de80f54db7815a8c.tar.gz dexon-0x-contracts-9395b53af424be536dc7a558de80f54db7815a8c.tar.zst dexon-0x-contracts-9395b53af424be536dc7a558de80f54db7815a8c.zip |
Rename ZeroExError.CONTRACT_DOES_NOT_EXIST to ZeroExError.EXCHANGE_CONTRACT_DOES_NOT_EXIST
Diffstat (limited to 'src')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 2 | ||||
-rw-r--r-- | src/types.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index d1fc0ea90..4d1e84a17 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -817,7 +817,7 @@ export class ExchangeWrapper extends ContractWrapper { return exchangeArtifact; } } - throw new Error(ZeroExError.CONTRACT_DOES_NOT_EXIST); + throw new Error(ZeroExError.EXCHANGE_CONTRACT_DOES_NOT_EXIST); } private async _getZRXTokenAddressAsync(exchangeContractAddress: string): Promise<string> { const exchangeInstance = await this._getExchangeContractAsync(exchangeContractAddress); diff --git a/src/types.ts b/src/types.ts index 41ff30193..cf2ddd48b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,6 +12,7 @@ function strEnum(values: string[]): {[key: string]: string} { export const ZeroExError = strEnum([ 'CONTRACT_DOES_NOT_EXIST', + 'EXCHANGE_CONTRACT_DOES_NOT_EXIST', 'UNHANDLED_ERROR', 'USER_HAS_NO_ASSOCIATED_ADDRESSES', 'INVALID_SIGNATURE', |