aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/test/integration
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-03-08 01:30:27 +0800
committerJacob Evans <jacob@dekz.net>2018-03-08 02:01:55 +0800
commite2e6ae937d2d38210442f493c24d492e3b477907 (patch)
tree48e4b2bf4d6357221b2795cf4e5cdf6448117041 /packages/subproviders/test/integration
parent5b9c5d27906dc2a3b4462599a1a67e43a4210ebd (diff)
downloaddexon-sol-tools-e2e6ae937d2d38210442f493c24d492e3b477907.tar
dexon-sol-tools-e2e6ae937d2d38210442f493c24d492e3b477907.tar.gz
dexon-sol-tools-e2e6ae937d2d38210442f493c24d492e3b477907.tar.bz2
dexon-sol-tools-e2e6ae937d2d38210442f493c24d492e3b477907.tar.lz
dexon-sol-tools-e2e6ae937d2d38210442f493c24d492e3b477907.tar.xz
dexon-sol-tools-e2e6ae937d2d38210442f493c24d492e3b477907.tar.zst
dexon-sol-tools-e2e6ae937d2d38210442f493c24d492e3b477907.zip
README on derivation path
Diffstat (limited to 'packages/subproviders/test/integration')
-rw-r--r--packages/subproviders/test/integration/ledger_subprovider_test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/subproviders/test/integration/ledger_subprovider_test.ts b/packages/subproviders/test/integration/ledger_subprovider_test.ts
index a9f538038..8ed69edaf 100644
--- a/packages/subproviders/test/integration/ledger_subprovider_test.ts
+++ b/packages/subproviders/test/integration/ledger_subprovider_test.ts
@@ -42,6 +42,10 @@ describe('LedgerSubprovider', () => {
expect(accounts[0]).to.not.be.an('undefined');
expect(accounts.length).to.be.equal(10);
});
+ it('returns the expected account', async () => {
+ const accounts = await ledgerSubprovider.getAccountsAsync();
+ expect(accounts[0]).to.be.equal(TEST_RPC_ACCOUNT_0);
+ });
it('returns requested number of accounts', async () => {
const numberOfAccounts = 20;
const accounts = await ledgerSubprovider.getAccountsAsync(numberOfAccounts);
@@ -61,6 +65,7 @@ describe('LedgerSubprovider', () => {
to: '0x0000000000000000000000000000000000000000',
value: '0x00',
chainId: 3,
+ from: TEST_RPC_ACCOUNT_0,
};
const txHex = await ledgerSubprovider.signTransactionAsync(tx);
expect(txHex).to.be.equal(