Fixing out-of-order browserify imports again.

This commit is contained in:
Richard Moore 2018-07-23 05:37:07 -04:00
parent 62987ac3a8
commit 7014afaab6
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
2 changed files with 12 additions and 2 deletions

@ -8,7 +8,6 @@ import { arrayify, hexlify, hexZeroPad, splitSignature } from './bytes';
import { hashMessage } from './hash'; import { hashMessage } from './hash';
import { keccak256 } from './keccak256'; import { keccak256 } from './keccak256';
import { defineReadOnly } from './properties'; import { defineReadOnly } from './properties';
import { ec as EC } from 'elliptic';
import { Arrayish, Signature } from './types'; import { Arrayish, Signature } from './types';
@ -111,3 +110,9 @@ export function verifyMessage(message: Arrayish | string, signature: Signature |
); );
} }
// !!! IMPORTANT !!!
//
// This must be be at the end, otherwise Browserify attempts to include upstream
// dependencies before this module is loaded.
import { ec as EC } from 'elliptic';

@ -3,7 +3,6 @@ import { getAddress } from './address';
import { bigNumberify, ConstantZero } from './bignumber'; import { bigNumberify, ConstantZero } from './bignumber';
import { arrayify, hexlify, hexZeroPad, splitSignature, stripZeros, } from './bytes'; import { arrayify, hexlify, hexZeroPad, splitSignature, stripZeros, } from './bytes';
import { keccak256 } from './keccak256'; import { keccak256 } from './keccak256';
import { recoverAddress } from './secp256k1';
import * as RLP from './rlp'; import * as RLP from './rlp';
@ -160,3 +159,9 @@ export function parse(rawTransaction: Arrayish): Transaction {
return tx; return tx;
} }
// !!! IMPORTANT !!!
//
// This must be be at the end, otherwise Browserify attempts to include upstream
// dependencies before this module is loaded.
import { recoverAddress } from './secp256k1';