aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-24 22:14:14 +0800
committerFabio Berger <me@fabioberger.com>2018-09-24 22:14:14 +0800
commit7516959c9f733c0ee73c2551db185a7751d9f94c (patch)
tree9a3e827452b8c980148fac7f53eb9fd84d282e33 /packages/order-watcher/src
parent311b92591955e9b6eaaaffe6b92b9f33a05d38b4 (diff)
downloaddexon-sol-tools-7516959c9f733c0ee73c2551db185a7751d9f94c.tar.gz
dexon-sol-tools-7516959c9f733c0ee73c2551db185a7751d9f94c.tar.zst
dexon-sol-tools-7516959c9f733c0ee73c2551db185a7751d9f94c.zip
Add comments for clarity
Diffstat (limited to 'packages/order-watcher/src')
-rw-r--r--packages/order-watcher/src/order_watcher/event_watcher.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/order-watcher/src/order_watcher/event_watcher.ts b/packages/order-watcher/src/order_watcher/event_watcher.ts
index fc8dd471d..eca235e26 100644
--- a/packages/order-watcher/src/order_watcher/event_watcher.ts
+++ b/packages/order-watcher/src/order_watcher/event_watcher.ts
@@ -82,6 +82,7 @@ export class EventWatcher {
this._onLogStateChangedAsync.bind(this, callback, isRemoved),
);
}
+ // This method only exists in order to comply with the expected interface of Blockstream's constructor
private async _getBlockOrNullAsync(): Promise<BlockWithoutTransactionData | null> {
const blockIfExists = await this._web3Wrapper.getBlockIfExistsAsync.bind(this._web3Wrapper);
if (_.isUndefined(blockIfExists)) {