diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-09-21 18:05:13 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-09-21 18:05:13 +0800 |
commit | 393f9e5a293511ede662907861cf72e4f8add098 (patch) | |
tree | 6a4ba0832bcbcc48942790fcc6e22780475b36b4 /packages/base-contract/src/index.ts | |
parent | 79cf6969f9fb4eedb48d790449663780d1516a43 (diff) | |
download | dexon-0x-contracts-393f9e5a293511ede662907861cf72e4f8add098.tar dexon-0x-contracts-393f9e5a293511ede662907861cf72e4f8add098.tar.gz dexon-0x-contracts-393f9e5a293511ede662907861cf72e4f8add098.tar.bz2 dexon-0x-contracts-393f9e5a293511ede662907861cf72e4f8add098.tar.lz dexon-0x-contracts-393f9e5a293511ede662907861cf72e4f8add098.tar.xz dexon-0x-contracts-393f9e5a293511ede662907861cf72e4f8add098.tar.zst dexon-0x-contracts-393f9e5a293511ede662907861cf72e4f8add098.zip |
Fix the way we detect BN's
Diffstat (limited to 'packages/base-contract/src/index.ts')
-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 35c830a46..90e576c24 100644 --- a/packages/base-contract/src/index.ts +++ b/packages/base-contract/src/index.ts @@ -61,7 +61,7 @@ export class BaseContract { } } protected static _bnToBigNumber(_type: string, value: any): any { - return _.isObject(value) && value._bn ? new BigNumber(value.toString()) : value; + return _.isObject(value) && value._hex ? new BigNumber(value.toString()) : value; } protected static async _applyDefaultsToTxDataAsync<T extends Partial<TxData | TxDataPayable>>( txData: T, |