aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/blockchain.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-18 15:02:36 +0800
committerFabio Berger <me@fabioberger.com>2018-01-18 15:02:36 +0800
commit996e9e9102dc3f7ebcd6328c59593410c397c779 (patch)
tree5caa8de01a6c5d3ab5cb5f03eb6ed77f49784cf2 /packages/website/ts/blockchain.ts
parenteb0d7df50b23af325edaecd7a7cccb269d7c8f88 (diff)
downloaddexon-sol-tools-996e9e9102dc3f7ebcd6328c59593410c397c779.tar
dexon-sol-tools-996e9e9102dc3f7ebcd6328c59593410c397c779.tar.gz
dexon-sol-tools-996e9e9102dc3f7ebcd6328c59593410c397c779.tar.bz2
dexon-sol-tools-996e9e9102dc3f7ebcd6328c59593410c397c779.tar.lz
dexon-sol-tools-996e9e9102dc3f7ebcd6328c59593410c397c779.tar.xz
dexon-sol-tools-996e9e9102dc3f7ebcd6328c59593410c397c779.tar.zst
dexon-sol-tools-996e9e9102dc3f7ebcd6328c59593410c397c779.zip
Add missing onError callbacks
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r--packages/website/ts/blockchain.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index 1320fbeb9..e82243c83 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -375,7 +375,11 @@ export class Blockchain {
clearInterval(this._zrxPollIntervalId);
delete this._zrxPollIntervalId;
}
- }, 5000);
+ }, 5000, (err: Error) => {
+ utils.consoleLog(`Polling tokenBalance failed: ${err}`);
+ clearInterval(this._zrxPollIntervalId);
+ delete this._zrxPollIntervalId;
+ });
}
public async signOrderHashAsync(orderHash: string): Promise<SignatureData> {
utils.assert(!_.isUndefined(this._zeroEx), 'ZeroEx must be instantiated.');