aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-07 00:26:17 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-07 00:26:17 +0800
commit67ed341f24d48491b5365a5bb82e445c0ca51f8c (patch)
treeb3db4607c6544acbc09f773abb1f8803c39b812f /src/contract_wrappers
parent0b6e874a0d06b6360946fa2495176ee4e5e7a34e (diff)
downloaddexon-sol-tools-67ed341f24d48491b5365a5bb82e445c0ca51f8c.tar
dexon-sol-tools-67ed341f24d48491b5365a5bb82e445c0ca51f8c.tar.gz
dexon-sol-tools-67ed341f24d48491b5365a5bb82e445c0ca51f8c.tar.bz2
dexon-sol-tools-67ed341f24d48491b5365a5bb82e445c0ca51f8c.tar.lz
dexon-sol-tools-67ed341f24d48491b5365a5bb82e445c0ca51f8c.tar.xz
dexon-sol-tools-67ed341f24d48491b5365a5bb82e445c0ca51f8c.tar.zst
dexon-sol-tools-67ed341f24d48491b5365a5bb82e445c0ca51f8c.zip
Use LogError type
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index f4b62d8c0..47a066a8f 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -685,10 +685,10 @@ export class ExchangeWrapper extends ContractWrapper {
}
/**
* Checks if logs contain LogError, which is emmited by Exchange contract on transaction failure.
- * @param logsWithdecodedArgs Transaction logs as returned by `zeroEx.awaitTransactionMinedAsync`
+ * @param logsWithDecodedArgs Transaction logs as returned by `zeroEx.awaitTransactionMinedAsync`
*/
- public throwLogErrorsAsErrors(logsWithdecodedArgs: LogWithDecodedArgs[]): void {
- const errLog = _.find(logsWithdecodedArgs, {event: 'LogError'});
+ public throwLogErrorsAsErrors(logsWithDecodedArgs: LogWithDecodedArgs[]): void {
+ const errLog = _.find(logsWithDecodedArgs, {event: ExchangeEvents.LogError});
if (!_.isUndefined(errLog)) {
const logArgs: LogErrorContractEventArgs = errLog.args as any;
const errCode = logArgs.errorId.toNumber();