aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-07 09:48:38 +0800
committerFabio Berger <me@fabioberger.com>2017-12-07 09:48:38 +0800
commit5967d39ca9f1580eb562d9c4c2045fc498899eac (patch)
tree3004c568e85be85b56e65d18d39a3b75f885f0cc /packages/subproviders
parentb82b50e2f0b18530da110e3d8ae2c07950a5cdef (diff)
downloaddexon-0x-contracts-5967d39ca9f1580eb562d9c4c2045fc498899eac.tar
dexon-0x-contracts-5967d39ca9f1580eb562d9c4c2045fc498899eac.tar.gz
dexon-0x-contracts-5967d39ca9f1580eb562d9c4c2045fc498899eac.tar.bz2
dexon-0x-contracts-5967d39ca9f1580eb562d9c4c2045fc498899eac.tar.lz
dexon-0x-contracts-5967d39ca9f1580eb562d9c4c2045fc498899eac.tar.xz
dexon-0x-contracts-5967d39ca9f1580eb562d9c4c2045fc498899eac.tar.zst
dexon-0x-contracts-5967d39ca9f1580eb562d9c4c2045fc498899eac.zip
Fix ethereumjs-tx declaration and import
Diffstat (limited to 'packages/subproviders')
-rw-r--r--packages/subproviders/src/globals.d.ts2
-rw-r--r--packages/subproviders/src/subproviders/ledger.ts2
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';