aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-19 23:42:25 +0800
committerFabio Berger <me@fabioberger.com>2017-06-19 23:42:25 +0800
commita8f706c79fb4244119a6d4ad03ea666689cc63fc (patch)
treef370ede530e5ae6f9b3530f7983c3e71e164156c /src/contract_wrappers
parentfe63a81f6a15a521c643b74f4442cdbf037202cf (diff)
parent36fe4c01aa5a86ef820c11bb0b2e4724c68e40b5 (diff)
downloaddexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.gz
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.bz2
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.lz
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.xz
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.tar.zst
dexon-sol-tools-a8f706c79fb4244119a6d4ad03ea666689cc63fc.zip
Merge branch 'master' of github.com:0xProject/0x.js
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 92eaa0f45..6b8ffd014 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -22,6 +22,7 @@ import {
ContractResponse,
OrderCancellationRequest,
OrderFillRequest,
+ LogErrorContractEventArgs,
} from '../types';
import {assert} from '../utils/assert';
import {utils} from '../utils/utils';
@@ -716,7 +717,7 @@ export class ExchangeWrapper extends ContractWrapper {
private _throwErrorLogsAsErrors(logs: ContractEvent[]): void {
const errEvent = _.find(logs, {event: 'LogError'});
if (!_.isUndefined(errEvent)) {
- const errCode = errEvent.args.errorId.toNumber();
+ const errCode = (errEvent.args as LogErrorContractEventArgs).errorId.toNumber()
const errMessage = this._exchangeContractErrCodesToMsg[errCode];
throw new Error(errMessage);
}