From a8c9945a0fd85cbb95741b5fed385455786700ce Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 7 Jul 2017 16:10:07 -0700 Subject: Migrate events --- src/contract_wrappers/exchange_wrapper.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/contract_wrappers') diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index da7e22f61..a930135a4 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -201,7 +201,7 @@ export class ExchangeWrapper extends ContractWrapper { ); this._throwErrorLogsAsErrors(response.logs); const logFillArgs = response.logs[0].args as LogFillContractEventArgs; - const filledTakerTokenAmount = new BigNumber(logFillArgs.filledValueT); + const filledTakerTokenAmount = new BigNumber(logFillArgs.filledTakerTokenAmount); return filledTakerTokenAmount; } /** @@ -283,7 +283,8 @@ export class ExchangeWrapper extends ContractWrapper { this._throwErrorLogsAsErrors(response.logs); let filledTakerTokenAmount = new BigNumber(0); _.each(response.logs, log => { - filledTakerTokenAmount = filledTakerTokenAmount.plus((log.args as LogFillContractEventArgs).filledValueT); + filledTakerTokenAmount = filledTakerTokenAmount.plus( + (log.args as LogFillContractEventArgs).filledTakerTokenAmount); }); return filledTakerTokenAmount; } @@ -518,7 +519,7 @@ export class ExchangeWrapper extends ContractWrapper { ); this._throwErrorLogsAsErrors(response.logs); const logFillArgs = response.logs[0].args as LogCancelContractEventArgs; - const cancelledTakerTokenAmount = new BigNumber(logFillArgs.cancelledValueT); + const cancelledTakerTokenAmount = new BigNumber(logFillArgs.cancelledTakerTokenAmount); return cancelledTakerTokenAmount; } /** -- cgit v1.2.3