aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-30 02:18:15 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-30 02:18:15 +0800
commit9395b53af424be536dc7a558de80f54db7815a8c (patch)
treeec40f470b1a53541f9fee6a498052103ba42c167
parentf6ec388916ebdd0c67f545125d67ca5a7af49131 (diff)
downloaddexon-sol-tools-9395b53af424be536dc7a558de80f54db7815a8c.tar
dexon-sol-tools-9395b53af424be536dc7a558de80f54db7815a8c.tar.gz
dexon-sol-tools-9395b53af424be536dc7a558de80f54db7815a8c.tar.bz2
dexon-sol-tools-9395b53af424be536dc7a558de80f54db7815a8c.tar.lz
dexon-sol-tools-9395b53af424be536dc7a558de80f54db7815a8c.tar.xz
dexon-sol-tools-9395b53af424be536dc7a558de80f54db7815a8c.tar.zst
dexon-sol-tools-9395b53af424be536dc7a558de80f54db7815a8c.zip
Rename ZeroExError.CONTRACT_DOES_NOT_EXIST to ZeroExError.EXCHANGE_CONTRACT_DOES_NOT_EXIST
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts2
-rw-r--r--src/types.ts1
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',