aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/test/integration
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-04-11 10:47:17 +0800
committerJacob Evans <jacob@dekz.net>2018-04-11 10:47:17 +0800
commit20a1deb187d8fb38a42ae87fc8f046dff4b4ba61 (patch)
tree5aed7d4b910aa11c2a3c261a685ca864d428878c /packages/subproviders/test/integration
parent9169913a2cbe9d421629db2e8169c0806044e3fc (diff)
downloaddexon-sol-tools-20a1deb187d8fb38a42ae87fc8f046dff4b4ba61.tar
dexon-sol-tools-20a1deb187d8fb38a42ae87fc8f046dff4b4ba61.tar.gz
dexon-sol-tools-20a1deb187d8fb38a42ae87fc8f046dff4b4ba61.tar.bz2
dexon-sol-tools-20a1deb187d8fb38a42ae87fc8f046dff4b4ba61.tar.lz
dexon-sol-tools-20a1deb187d8fb38a42ae87fc8f046dff4b4ba61.tar.xz
dexon-sol-tools-20a1deb187d8fb38a42ae87fc8f046dff4b4ba61.tar.zst
dexon-sol-tools-20a1deb187d8fb38a42ae87fc8f046dff4b4ba61.zip
Throw errors when the address is not specified or invalid
Diffstat (limited to 'packages/subproviders/test/integration')
-rw-r--r--packages/subproviders/test/integration/ledger_subprovider_test.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/subproviders/test/integration/ledger_subprovider_test.ts b/packages/subproviders/test/integration/ledger_subprovider_test.ts
index 88a3c6db1..4a831af67 100644
--- a/packages/subproviders/test/integration/ledger_subprovider_test.ts
+++ b/packages/subproviders/test/integration/ledger_subprovider_test.ts
@@ -55,7 +55,10 @@ describe('LedgerSubprovider', () => {
});
it('signs a personal message', async () => {
const data = ethUtils.bufferToHex(ethUtils.toBuffer(fixtureData.PERSONAL_MESSAGE_STRING));
- const ecSignatureHex = await ledgerSubprovider.signPersonalMessageAsync(data);
+ const ecSignatureHex = await ledgerSubprovider.signPersonalMessageAsync(
+ data,
+ fixtureData.TEST_RPC_ACCOUNT_0,
+ );
expect(ecSignatureHex.length).to.be.equal(132);
expect(ecSignatureHex).to.be.equal(fixtureData.PERSONAL_MESSAGE_SIGNED_RESULT);
});