aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/test/unit
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-26 04:59:41 +0800
committerFabio Berger <me@fabioberger.com>2018-06-26 04:59:41 +0800
commit31e3b9ff8baac145be3e00eedc6d0ae065474b8d (patch)
tree2ee3bc050892eff5f221b7565ac9cca49c594b47 /packages/subproviders/test/unit
parentb2e32aaf588196b21a453fe7f7e38eb6eb154c22 (diff)
downloaddexon-sol-tools-31e3b9ff8baac145be3e00eedc6d0ae065474b8d.tar
dexon-sol-tools-31e3b9ff8baac145be3e00eedc6d0ae065474b8d.tar.gz
dexon-sol-tools-31e3b9ff8baac145be3e00eedc6d0ae065474b8d.tar.bz2
dexon-sol-tools-31e3b9ff8baac145be3e00eedc6d0ae065474b8d.tar.lz
dexon-sol-tools-31e3b9ff8baac145be3e00eedc6d0ae065474b8d.tar.xz
dexon-sol-tools-31e3b9ff8baac145be3e00eedc6d0ae065474b8d.tar.zst
dexon-sol-tools-31e3b9ff8baac145be3e00eedc6d0ae065474b8d.zip
Fix and imprrove ethLightWalletSubprovider
Diffstat (limited to 'packages/subproviders/test/unit')
-rw-r--r--packages/subproviders/test/unit/eth_lightwallet_subprovider_test.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/subproviders/test/unit/eth_lightwallet_subprovider_test.ts b/packages/subproviders/test/unit/eth_lightwallet_subprovider_test.ts
index 77a1ac58e..b99dbff2f 100644
--- a/packages/subproviders/test/unit/eth_lightwallet_subprovider_test.ts
+++ b/packages/subproviders/test/unit/eth_lightwallet_subprovider_test.ts
@@ -1,8 +1,7 @@
-import { JSONRPCResponsePayload } from '@0xproject/types';
import * as chai from 'chai';
import * as lightwallet from 'eth-lightwallet';
+import { JSONRPCResponsePayload } from 'ethereum-types';
import Web3ProviderEngine = require('web3-provider-engine');
-import RpcSubprovider = require('web3-provider-engine/subproviders/rpc');
import { EthLightwalletSubprovider } from '../../src';
import { DoneCallback } from '../../src/types';
@@ -59,7 +58,7 @@ describe('EthLightwalletSubprovider', () => {
keystore.generateNewAddress(pwDerivedKey, NUM_GENERATED_ADDRESSES);
// Initialize Subprovider
- ethLightwalletSubprovider = new EthLightwalletSubprovider(lightwallet.signing, keystore, pwDerivedKey);
+ ethLightwalletSubprovider = new EthLightwalletSubprovider(keystore, pwDerivedKey);
});
describe('direct method calls', () => {
describe('success cases', () => {
@@ -73,8 +72,10 @@ describe('EthLightwalletSubprovider', () => {
// Keccak-256 hash of 'hello world'
const messageHash = '0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad';
- const ecSignatureHex =
- await ethLightwalletSubprovider.signPersonalMessageAsync(messageHash, signingAccount);
+ const ecSignatureHex = await ethLightwalletSubprovider.signPersonalMessageAsync(
+ messageHash,
+ signingAccount,
+ );
expect(ecSignatureHex).to.be.equal(
// tslint:disable-next-line:max-line-length
'0xa46b696c1aa8f91dbb33d1a66f6440bf3cf334c9dc45dc389668c1e60e2db31e259400b41f31632fa994837054c5345c88dc455c13931332489029adee6fd24d1b',