diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-22 06:33:37 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-22 06:34:47 +0800 |
commit | f7fac34e03166533d92d2e0281103904e0b987f2 (patch) | |
tree | 58d4284ef73a72a5e341872a1fe50f862ce310fd /src | |
parent | 569cff01f3525359ce43752988b24c74f1781813 (diff) | |
download | dexon-sol-tools-f7fac34e03166533d92d2e0281103904e0b987f2.tar dexon-sol-tools-f7fac34e03166533d92d2e0281103904e0b987f2.tar.gz dexon-sol-tools-f7fac34e03166533d92d2e0281103904e0b987f2.tar.bz2 dexon-sol-tools-f7fac34e03166533d92d2e0281103904e0b987f2.tar.lz dexon-sol-tools-f7fac34e03166533d92d2e0281103904e0b987f2.tar.xz dexon-sol-tools-f7fac34e03166533d92d2e0281103904e0b987f2.tar.zst dexon-sol-tools-f7fac34e03166533d92d2e0281103904e0b987f2.zip |
Add bn.js types
Diffstat (limited to 'src')
-rw-r--r-- | src/globals.d.ts | 1 | ||||
-rw-r--r-- | src/utils/utils.ts | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts index 1faf468a7..3d19b96cc 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -2,7 +2,6 @@ /// <reference types='chai-as-promised-typescript-typings' /> declare module 'chai-bignumber'; declare module 'dirty-chai'; -declare module 'bn.js'; declare module 'request-promise-native'; declare module 'web3-provider-engine'; declare module 'web3-provider-engine/subproviders/rpc'; diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 6702de218..f2bf74860 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,9 +1,9 @@ import * as _ from 'lodash'; -import * as BN from 'bn.js'; import * as ethABI from 'ethereumjs-abi'; import * as ethUtil from 'ethereumjs-util'; import {Order, SignedOrder, SolidityTypes} from '../types'; import * as BigNumber from 'bignumber.js'; +import BN = require('bn.js'); export const utils = { /** |