diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-29 21:17:25 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-29 22:52:54 +0800 |
commit | 3d7bcd7ecbd586e3c78e94b9cfc3d1a004ad86dd (patch) | |
tree | 9cc56486fd61d8c2e2624d2195b09849a24c3344 /packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts | |
parent | ac9175bf88272f8ea64c74cdf943decf2548c507 (diff) | |
download | dexon-sol-tools-3d7bcd7ecbd586e3c78e94b9cfc3d1a004ad86dd.tar dexon-sol-tools-3d7bcd7ecbd586e3c78e94b9cfc3d1a004ad86dd.tar.gz dexon-sol-tools-3d7bcd7ecbd586e3c78e94b9cfc3d1a004ad86dd.tar.bz2 dexon-sol-tools-3d7bcd7ecbd586e3c78e94b9cfc3d1a004ad86dd.tar.lz dexon-sol-tools-3d7bcd7ecbd586e3c78e94b9cfc3d1a004ad86dd.tar.xz dexon-sol-tools-3d7bcd7ecbd586e3c78e94b9cfc3d1a004ad86dd.tar.zst dexon-sol-tools-3d7bcd7ecbd586e3c78e94b9cfc3d1a004ad86dd.zip |
Add isSubscriptionToken assertion
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts index f8e4a683c..97872c247 100644 --- a/packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/ether_token_wrapper.ts @@ -168,6 +168,7 @@ export class EtherTokenWrapper extends ContractWrapper { * @param subscriptionToken Subscription token returned by `subscribe()` */ public unsubscribe(subscriptionToken: string): void { + assert.isValidSubscriptionToken('subscriptionToken', subscriptionToken); this._unsubscribe(subscriptionToken); } /** |