diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 03:08:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 03:08:14 +0800 |
commit | 8151523d33991a6bb99350f92496719231cc6551 (patch) | |
tree | 1be1ba9f8ad06b523656385e84c68921e0f6acc6 | |
parent | 0e54418dbbccab84fad30e7d8b38f189652f76e7 (diff) | |
download | dexon-sol-tools-8151523d33991a6bb99350f92496719231cc6551.tar dexon-sol-tools-8151523d33991a6bb99350f92496719231cc6551.tar.gz dexon-sol-tools-8151523d33991a6bb99350f92496719231cc6551.tar.bz2 dexon-sol-tools-8151523d33991a6bb99350f92496719231cc6551.tar.lz dexon-sol-tools-8151523d33991a6bb99350f92496719231cc6551.tar.xz dexon-sol-tools-8151523d33991a6bb99350f92496719231cc6551.tar.zst dexon-sol-tools-8151523d33991a6bb99350f92496719231cc6551.zip |
Use _.isString instead of instanceof
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 5d4c21154..106c8774c 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -601,7 +601,7 @@ export class ExchangeWrapper extends ContractWrapper { const bignumberWrappingEventCallback = (err: Error, event: ContractEvent) => { if (_.isNull(err)) { const wrapIfBigNumber = (value: ContractEventArg): ContractEventArg => { - return value instanceof String ? value : new BigNumber(value); + return _.isString(value) ? value : new BigNumber(value); }; event.args = _.mapValues(event.args, wrapIfBigNumber); } |