diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-11 10:56:52 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-11 10:56:52 +0800 |
commit | 65b2c936abdf3a67d471cd17eeed5069825ac3d4 (patch) | |
tree | cdf8a2d570809fce6a7daac9790000ee99f86b83 /packages/subproviders/test/integration | |
parent | eee190826a44dfe5444f15165577ea73b4f78c2f (diff) | |
download | dexon-0x-contracts-65b2c936abdf3a67d471cd17eeed5069825ac3d4.tar.gz dexon-0x-contracts-65b2c936abdf3a67d471cd17eeed5069825ac3d4.tar.zst dexon-0x-contracts-65b2c936abdf3a67d471cd17eeed5069825ac3d4.zip |
Tests for signed transactions and multiple accounts
Diffstat (limited to 'packages/subproviders/test/integration')
-rw-r--r-- | packages/subproviders/test/integration/ledger_subprovider_test.ts | 5 |
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 ea5010696..2db4befb3 100644 --- a/packages/subproviders/test/integration/ledger_subprovider_test.ts +++ b/packages/subproviders/test/integration/ledger_subprovider_test.ts @@ -73,6 +73,11 @@ describe('LedgerSubprovider', () => { const txHex = await ledgerSubprovider.signTransactionAsync(fixtureData.TX_DATA); expect(txHex).to.be.equal(fixtureData.TX_DATA_SIGNED_RESULT); }); + it('signs a transaction with the second address', async () => { + const txData = { ...fixtureData.TX_DATA, from: fixtureData.TEST_RPC_ACCOUNT_1 }; + const txHex = await ledgerSubprovider.signTransactionAsync(txData); + expect(txHex).to.be.equal(fixtureData.TX_DATA_ACCOUNT_1_SIGNED_RESULT); + }); }); describe('calls through a provider', () => { let defaultProvider: Web3ProviderEngine; |