aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-11 23:57:39 +0800
committerFabio Berger <me@fabioberger.com>2017-11-11 23:57:39 +0800
commit72fcf7b2ab46bb25a72ef508592d11aa99e4d7c0 (patch)
tree322dc4c7432ee59504917a653df738f5645d85e1
parenta8b6bbd6bc5a81828ca4bbc5db6452ecefd1a898 (diff)
downloaddexon-sol-tools-72fcf7b2ab46bb25a72ef508592d11aa99e4d7c0.tar.gz
dexon-sol-tools-72fcf7b2ab46bb25a72ef508592d11aa99e4d7c0.tar.zst
dexon-sol-tools-72fcf7b2ab46bb25a72ef508592d11aa99e4d7c0.zip
rename isDecodedLog to isLogDecoded
-rw-r--r--src/order_watcher/order_state_watcher.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts
index 69efada2a..dfa830402 100644
--- a/src/order_watcher/order_state_watcher.ts
+++ b/src/order_watcher/order_state_watcher.ts
@@ -113,8 +113,8 @@ export class OrderStateWatcher {
}
private async _onEventWatcherCallbackAsync(log: LogEvent): Promise<void> {
const maybeDecodedLog = this._abiDecoder.tryToDecodeLogOrNoop(log);
- const isDecodedLog = !_.isUndefined((maybeDecodedLog as LogWithDecodedArgs<any>).event);
- if (!isDecodedLog) {
+ const isLogDecoded = !_.isUndefined((maybeDecodedLog as LogWithDecodedArgs<any>).event);
+ if (!isLogDecoded) {
return; // noop
}
const blockNumberBuff = ethUtil.toBuffer(maybeDecodedLog.blockNumber);