diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-02 18:31:16 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-02 18:31:16 +0800 |
commit | fc3be810a25ce98402c686bd41606e08e7b5c2ac (patch) | |
tree | da0d7ee884c9df78ee7fc0659517075461b35096 /src/utils | |
parent | 104b7f2549e0164f629594c590b3d2d936ba66d0 (diff) | |
download | dexon-sol-tools-fc3be810a25ce98402c686bd41606e08e7b5c2ac.tar dexon-sol-tools-fc3be810a25ce98402c686bd41606e08e7b5c2ac.tar.gz dexon-sol-tools-fc3be810a25ce98402c686bd41606e08e7b5c2ac.tar.bz2 dexon-sol-tools-fc3be810a25ce98402c686bd41606e08e7b5c2ac.tar.lz dexon-sol-tools-fc3be810a25ce98402c686bd41606e08e7b5c2ac.tar.xz dexon-sol-tools-fc3be810a25ce98402c686bd41606e08e7b5c2ac.tar.zst dexon-sol-tools-fc3be810a25ce98402c686bd41606e08e7b5c2ac.zip |
Implement zeroEx.exchange.subscribeAsync made sure to clean up subscriptions if user updates the provider
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/utils.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts index e6840a624..114b46f6c 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -22,4 +22,7 @@ export const utils = { const isValid = /^0x[0-9A-F]{64}$/i.test(orderHashHex); return isValid; }, + spawnSwitchErr(name: string, value: any) { + return new Error(`Unexpected switch value: ${value} encountered for ${name}`); + }, }; |