diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 18:32:53 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 23:25:25 +0800 |
commit | e84232cce8b1a1b1e3607d341baa688613dcefde (patch) | |
tree | 848fda704174e8d559be41021110c6c2c7b03b0d /packages/base-contract/src | |
parent | de78d6a8ad6104a044e5b56251c47a41b63bf013 (diff) | |
download | dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.tar.gz dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.tar.zst dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.zip |
Use new check for isBigNumber
Diffstat (limited to 'packages/base-contract/src')
-rw-r--r-- | packages/base-contract/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts index c2b7b943b..101228c52 100644 --- a/packages/base-contract/src/index.ts +++ b/packages/base-contract/src/index.ts @@ -43,7 +43,7 @@ export class BaseContract { return type === 'address' ? value.toLowerCase() : value; } protected static _bigNumberToString(_type: string, value: any): any { - return _.isObject(value) && value.isBigNumber ? value.toString() : value; + return BigNumber.isBigNumber(value) ? value.toString() : value; } protected static _lookupConstructorAbi(abi: ContractAbi): ConstructorAbi { const constructorAbiIfExists = _.find( |