Removed redundant log decode call

This commit is contained in:
Greg Hysen
2018-05-16 16:59:50 -07:00
parent 636dae6a79
commit 28bb11217c

View File

@@ -243,8 +243,6 @@ export class ExchangeWrapper {
{ from },
);
const tx = await this._getTxWithDecodedExchangeLogsAsync(txHash);
tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address);
tx.logs = _.map(tx.logs, log => this._logDecoder.decodeLogOrThrow(log));
return tx;
}
private async _getTxWithDecodedExchangeLogsAsync(txHash: string) {