aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/contract_wrappers/contract_wrapper.ts4
-rw-r--r--src/types.ts3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/contract_wrappers/contract_wrapper.ts b/src/contract_wrappers/contract_wrapper.ts
index 921b5a6c2..cffd2f6f3 100644
--- a/src/contract_wrappers/contract_wrapper.ts
+++ b/src/contract_wrappers/contract_wrapper.ts
@@ -3,7 +3,7 @@ import * as Web3 from 'web3';
import {Web3Wrapper} from '../web3_wrapper';
import {AbiDecoder} from '../utils/abi_decoder';
import {
- ZeroExError,
+ InternalZeroExError,
Artifact,
LogWithDecodedArgs,
RawLog,
@@ -40,7 +40,7 @@ export class ContractWrapper {
}
protected _tryToDecodeLogOrNoop(log: Web3.LogEntry): LogWithDecodedArgs|RawLog {
if (_.isUndefined(this._abiDecoder)) {
- throw new Error(ZeroExError.NoAbiDecoder);
+ throw new Error(InternalZeroExError.NoAbiDecoder);
}
const logWithDecodedArgs = this._abiDecoder.tryToDecodeLogOrNoop(log);
return logWithDecodedArgs;
diff --git a/src/types.ts b/src/types.ts
index 0567b5e6a..a6a24ef8e 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -15,6 +15,9 @@ export enum ZeroExError {
InvalidJump = 'INVALID_JUMP',
OutOfGas = 'OUT_OF_GAS',
NoNetworkId = 'NO_NETWORK_ID',
+}
+
+export enum InternalZeroExError {
NoAbiDecoder = 'NO_ABI_DECODER',
}