diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-07 09:48:38 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-07 09:48:38 +0800 |
commit | 5967d39ca9f1580eb562d9c4c2045fc498899eac (patch) | |
tree | 3004c568e85be85b56e65d18d39a3b75f885f0cc /packages/subproviders | |
parent | b82b50e2f0b18530da110e3d8ae2c07950a5cdef (diff) | |
download | dexon-sol-tools-5967d39ca9f1580eb562d9c4c2045fc498899eac.tar.gz dexon-sol-tools-5967d39ca9f1580eb562d9c4c2045fc498899eac.tar.zst dexon-sol-tools-5967d39ca9f1580eb562d9c4c2045fc498899eac.zip |
Fix ethereumjs-tx declaration and import
Diffstat (limited to 'packages/subproviders')
-rw-r--r-- | packages/subproviders/src/globals.d.ts | 2 | ||||
-rw-r--r-- | packages/subproviders/src/subproviders/ledger.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 3e50bedaa..520ca9232 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -17,7 +17,7 @@ declare module 'ethereumjs-tx' { public serialize(): Buffer; constructor(txParams: any); } - export default EthereumTx; + export = EthereumTx; } // Ledgerco declarations diff --git a/packages/subproviders/src/subproviders/ledger.ts b/packages/subproviders/src/subproviders/ledger.ts index eba1a48a4..c8fa7fd5a 100644 --- a/packages/subproviders/src/subproviders/ledger.ts +++ b/packages/subproviders/src/subproviders/ledger.ts @@ -1,7 +1,7 @@ import {assert} from '@0xproject/assert'; import promisify = require('es6-promisify'); import {isAddress} from 'ethereum-address'; -import EthereumTx from 'ethereumjs-tx'; +import EthereumTx = require('ethereumjs-tx'); import ethUtil = require('ethereumjs-util'); import * as ledger from 'ledgerco'; import * as _ from 'lodash'; |