diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-02-12 12:02:54 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:16 +0800 |
commit | df99a360fb3467b80952416ed1d1802f3599ee8d (patch) | |
tree | 86f2982184635bdcb9a74a7d24409f92ad133dc6 /packages/contracts/src/utils/exchange_wrapper.ts | |
parent | 4c76ad072a043253085fc0f08f47afb30bb6f834 (diff) | |
download | dexon-0x-contracts-df99a360fb3467b80952416ed1d1802f3599ee8d.tar.gz dexon-0x-contracts-df99a360fb3467b80952416ed1d1802f3599ee8d.tar.zst dexon-0x-contracts-df99a360fb3467b80952416ed1d1802f3599ee8d.zip |
Rename variables
Diffstat (limited to 'packages/contracts/src/utils/exchange_wrapper.ts')
-rw-r--r-- | packages/contracts/src/utils/exchange_wrapper.ts | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/packages/contracts/src/utils/exchange_wrapper.ts b/packages/contracts/src/utils/exchange_wrapper.ts index 4887a1f07..f86b507e9 100644 --- a/packages/contracts/src/utils/exchange_wrapper.ts +++ b/packages/contracts/src/utils/exchange_wrapper.ts @@ -36,9 +36,9 @@ export class ExchangeWrapper { const tx = await this._zeroEx.awaitTransactionMinedAsync(txHash); tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address); tx.logs = _.map(tx.logs, log => { - const decodedLog = this._logDecoder.tryToDecodeLogOrNoop(log); - wrapLogBigNumbers(decodedLog); - return decodedLog; + const logWithDecodedArgs = this._logDecoder.tryToDecodeLogOrNoop(log); + wrapLogBigNumbers(logWithDecodedArgs); + return logWithDecodedArgs; }); return tx; } @@ -57,9 +57,9 @@ export class ExchangeWrapper { const tx = await this._zeroEx.awaitTransactionMinedAsync(txHash); tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address); tx.logs = _.map(tx.logs, log => { - const decodedLog = this._logDecoder.tryToDecodeLogOrNoop(log); - wrapLogBigNumbers(decodedLog); - return decodedLog; + const logWithDecodedArgs = this._logDecoder.tryToDecodeLogOrNoop(log); + wrapLogBigNumbers(logWithDecodedArgs); + return logWithDecodedArgs; }); return tx; } @@ -81,9 +81,9 @@ export class ExchangeWrapper { const tx = await this._zeroEx.awaitTransactionMinedAsync(txHash); tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address); tx.logs = _.map(tx.logs, log => { - const decodedLog = this._logDecoder.tryToDecodeLogOrNoop(log); - wrapLogBigNumbers(decodedLog); - return decodedLog; + const logWithDecodedArgs = this._logDecoder.tryToDecodeLogOrNoop(log); + wrapLogBigNumbers(logWithDecodedArgs); + return logWithDecodedArgs; }); return tx; } @@ -105,9 +105,9 @@ export class ExchangeWrapper { const tx = await this._zeroEx.awaitTransactionMinedAsync(txHash); tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address); tx.logs = _.map(tx.logs, log => { - const decodedLog = this._logDecoder.tryToDecodeLogOrNoop(log); - wrapLogBigNumbers(decodedLog); - return decodedLog; + const logWithDecodedArgs = this._logDecoder.tryToDecodeLogOrNoop(log); + wrapLogBigNumbers(logWithDecodedArgs); + return logWithDecodedArgs; }); return tx; } @@ -129,9 +129,9 @@ export class ExchangeWrapper { const tx = await this._zeroEx.awaitTransactionMinedAsync(txHash); tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address); tx.logs = _.map(tx.logs, log => { - const decodedLog = this._logDecoder.tryToDecodeLogOrNoop(log); - wrapLogBigNumbers(decodedLog); - return decodedLog; + const logWithDecodedArgs = this._logDecoder.tryToDecodeLogOrNoop(log); + wrapLogBigNumbers(logWithDecodedArgs); + return logWithDecodedArgs; }); return tx; } @@ -153,9 +153,9 @@ export class ExchangeWrapper { const tx = await this._zeroEx.awaitTransactionMinedAsync(txHash); tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address); tx.logs = _.map(tx.logs, log => { - const decodedLog = this._logDecoder.tryToDecodeLogOrNoop(log); - wrapLogBigNumbers(decodedLog); - return decodedLog; + const logWithDecodedArgs = this._logDecoder.tryToDecodeLogOrNoop(log); + wrapLogBigNumbers(logWithDecodedArgs); + return logWithDecodedArgs; }); return tx; } @@ -174,9 +174,9 @@ export class ExchangeWrapper { const tx = await this._zeroEx.awaitTransactionMinedAsync(txHash); tx.logs = _.filter(tx.logs, log => log.address === this._exchange.address); tx.logs = _.map(tx.logs, log => { - const decodedLog = this._logDecoder.tryToDecodeLogOrNoop(log); - wrapLogBigNumbers(decodedLog); - return decodedLog; + const logWithDecodedArgs = this._logDecoder.tryToDecodeLogOrNoop(log); + wrapLogBigNumbers(logWithDecodedArgs); + return logWithDecodedArgs; }); return tx; } |