aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-04 16:53:02 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-04 16:53:02 +0800
commitd1e4f6efdd14dc3b7c73b1d95f360cedaf4df03b (patch)
treee7db1e5909faa6487c90b76abfdefaa00d04784b
parentf65bfc1ab1425e4866b5b7b7ecf2a30e0eb018a7 (diff)
downloaddexon-sol-tools-d1e4f6efdd14dc3b7c73b1d95f360cedaf4df03b.tar
dexon-sol-tools-d1e4f6efdd14dc3b7c73b1d95f360cedaf4df03b.tar.gz
dexon-sol-tools-d1e4f6efdd14dc3b7c73b1d95f360cedaf4df03b.tar.bz2
dexon-sol-tools-d1e4f6efdd14dc3b7c73b1d95f360cedaf4df03b.tar.lz
dexon-sol-tools-d1e4f6efdd14dc3b7c73b1d95f360cedaf4df03b.tar.xz
dexon-sol-tools-d1e4f6efdd14dc3b7c73b1d95f360cedaf4df03b.tar.zst
dexon-sol-tools-d1e4f6efdd14dc3b7c73b1d95f360cedaf4df03b.zip
Move NoAbiDecoder to InternalZeroExErrors
-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',
}