aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-12 00:05:52 +0800
committerFabio Berger <me@fabioberger.com>2017-11-12 00:05:52 +0800
commitb66600338e0057baa6964328bdf337a905aa5ff9 (patch)
tree1723c1532087a59e8b18be5613b8bd0db4ff1438 /src
parent72fcf7b2ab46bb25a72ef508592d11aa99e4d7c0 (diff)
downloaddexon-sol-tools-b66600338e0057baa6964328bdf337a905aa5ff9.tar
dexon-sol-tools-b66600338e0057baa6964328bdf337a905aa5ff9.tar.gz
dexon-sol-tools-b66600338e0057baa6964328bdf337a905aa5ff9.tar.bz2
dexon-sol-tools-b66600338e0057baa6964328bdf337a905aa5ff9.tar.lz
dexon-sol-tools-b66600338e0057baa6964328bdf337a905aa5ff9.tar.xz
dexon-sol-tools-b66600338e0057baa6964328bdf337a905aa5ff9.tar.zst
dexon-sol-tools-b66600338e0057baa6964328bdf337a905aa5ff9.zip
Add comment
Diffstat (limited to 'src')
-rw-r--r--src/order_watcher/order_state_watcher.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts
index dfa830402..4866f8409 100644
--- a/src/order_watcher/order_state_watcher.ts
+++ b/src/order_watcher/order_state_watcher.ts
@@ -117,6 +117,8 @@ export class OrderStateWatcher {
if (!isLogDecoded) {
return; // noop
}
+ // Unfortunately blockNumber is returned as a hex-encoded string, so we
+ // convert it to a number here.
const blockNumberBuff = ethUtil.toBuffer(maybeDecodedLog.blockNumber);
const blockNumber = ethUtil.bufferToInt(blockNumberBuff);