diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-15 08:16:03 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-15 08:16:03 +0800 |
commit | 80e5127a469a0f38cddc18a45a4a7e019191760c (patch) | |
tree | 6f204b4d0f91221bb35f3a9727ad29c122024981 /packages/connect/src/utils/assert.ts | |
parent | 5c40c466f6e9f690afa86f23dd5ba240691dceb8 (diff) | |
download | dexon-0x-contracts-80e5127a469a0f38cddc18a45a4a7e019191760c.tar dexon-0x-contracts-80e5127a469a0f38cddc18a45a4a7e019191760c.tar.gz dexon-0x-contracts-80e5127a469a0f38cddc18a45a4a7e019191760c.tar.bz2 dexon-0x-contracts-80e5127a469a0f38cddc18a45a4a7e019191760c.tar.lz dexon-0x-contracts-80e5127a469a0f38cddc18a45a4a7e019191760c.tar.xz dexon-0x-contracts-80e5127a469a0f38cddc18a45a4a7e019191760c.tar.zst dexon-0x-contracts-80e5127a469a0f38cddc18a45a4a7e019191760c.zip |
Update types and add missing param to SRA spec
Diffstat (limited to 'packages/connect/src/utils/assert.ts')
-rw-r--r-- | packages/connect/src/utils/assert.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/connect/src/utils/assert.ts b/packages/connect/src/utils/assert.ts index a0fd12fbd..353b7f29f 100644 --- a/packages/connect/src/utils/assert.ts +++ b/packages/connect/src/utils/assert.ts @@ -14,11 +14,10 @@ export const assert = { sharedAssert.doesConformToSchema( variableName, subscriptionOpts, - schemas.relayerApiOrderbookChannelSubscribePayload, + schemas.relayerApiOrdersChannelSubscribePayload, ); }, isOrderbookChannelHandler(variableName: string, handler: any): void { - sharedAssert.isFunction(`${variableName}.onSnapshot`, _.get(handler, 'onSnapshot')); sharedAssert.isFunction(`${variableName}.onUpdate`, _.get(handler, 'onUpdate')); sharedAssert.isFunction(`${variableName}.onError`, _.get(handler, 'onError')); sharedAssert.isFunction(`${variableName}.onClose`, _.get(handler, 'onClose')); |