diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-05 13:01:56 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-05 13:18:38 +0800 |
commit | 9d18f751c8822910391e55c29fc2b1912a1ee108 (patch) | |
tree | a72b85c29e33a1ebb202ad5dd3a45da09d4a94c2 /packages/subproviders/test/integration | |
parent | 674e56cea69fe96ddd0071d3c4c5b5ea8ae299bf (diff) | |
download | dexon-sol-tools-9d18f751c8822910391e55c29fc2b1912a1ee108.tar dexon-sol-tools-9d18f751c8822910391e55c29fc2b1912a1ee108.tar.gz dexon-sol-tools-9d18f751c8822910391e55c29fc2b1912a1ee108.tar.bz2 dexon-sol-tools-9d18f751c8822910391e55c29fc2b1912a1ee108.tar.lz dexon-sol-tools-9d18f751c8822910391e55c29fc2b1912a1ee108.tar.xz dexon-sol-tools-9d18f751c8822910391e55c29fc2b1912a1ee108.tar.zst dexon-sol-tools-9d18f751c8822910391e55c29fc2b1912a1ee108.zip |
Create a private key subprovider
Diffstat (limited to 'packages/subproviders/test/integration')
-rw-r--r-- | packages/subproviders/test/integration/ledger_subprovider_test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/subproviders/test/integration/ledger_subprovider_test.ts b/packages/subproviders/test/integration/ledger_subprovider_test.ts index bc60b4330..3039bd560 100644 --- a/packages/subproviders/test/integration/ledger_subprovider_test.ts +++ b/packages/subproviders/test/integration/ledger_subprovider_test.ts @@ -58,7 +58,9 @@ describe('LedgerSubprovider', () => { const data = ethUtils.bufferToHex(ethUtils.toBuffer('hello world')); const ecSignatureHex = await ledgerSubprovider.signPersonalMessageAsync(data); expect(ecSignatureHex.length).to.be.equal(132); - expect(ecSignatureHex.substr(0, 2)).to.be.equal('0x'); + expect(ecSignatureHex).to.be.equal( + '0x1b0ec5e2908e993d0c8ab6b46da46be2688fdf03c7ea6686075de37392e50a7d7fcc531446699132fbda915bd989882e0064d417018773a315fb8d43ed063c9b00', + ); }); it('signs a transaction', async () => { const tx = { |