aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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',