aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/test/unit/ledger_subprovider_test.ts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-04-06 14:07:00 +0800
committerJacob Evans <jacob@dekz.net>2018-04-06 14:07:00 +0800
commita0fac663f72feafbac98c2949578ec48b8d2ec0a (patch)
tree0e342072160e66f352260e32d7c34dd8ce8b0199 /packages/subproviders/test/unit/ledger_subprovider_test.ts
parent774ab8a8efa1ff5914896d9435c0362a4586c2ef (diff)
downloaddexon-sol-tools-a0fac663f72feafbac98c2949578ec48b8d2ec0a.tar.gz
dexon-sol-tools-a0fac663f72feafbac98c2949578ec48b8d2ec0a.tar.zst
dexon-sol-tools-a0fac663f72feafbac98c2949578ec48b8d2ec0a.zip
Update shared fixture data for network 42
Diffstat (limited to 'packages/subproviders/test/unit/ledger_subprovider_test.ts')
-rw-r--r--packages/subproviders/test/unit/ledger_subprovider_test.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/subproviders/test/unit/ledger_subprovider_test.ts b/packages/subproviders/test/unit/ledger_subprovider_test.ts
index 66cb39a48..c18506681 100644
--- a/packages/subproviders/test/unit/ledger_subprovider_test.ts
+++ b/packages/subproviders/test/unit/ledger_subprovider_test.ts
@@ -14,6 +14,7 @@ import {
WalletSubproviderErrors,
} from '../../src/types';
import { chaiSetup } from '../chai_setup';
+import { fixtureData } from '../utils/fixture_data';
import { reportCallbackErrors } from '../utils/report_callback_errors';
chaiSetup.configure();
@@ -80,7 +81,7 @@ describe('LedgerSubprovider', () => {
expect(accounts.length).to.be.equal(numberOfAccounts);
});
it('signs a personal message', async () => {
- const data = ethUtils.bufferToHex(ethUtils.toBuffer('hello world'));
+ const data = ethUtils.bufferToHex(ethUtils.toBuffer(fixtureData.PERSONAL_MESSAGE_STRING));
const ecSignatureHex = await ledgerSubprovider.signPersonalMessageAsync(data);
expect(ecSignatureHex).to.be.equal(
'0xa6cc284bff14b42bdf5e9286730c152be91719d478605ec46b3bebcd0ae491480652a1a7b742ceb0213d1e744316e285f41f878d8af0b8e632cbca4c279132d001',
@@ -144,7 +145,7 @@ describe('LedgerSubprovider', () => {
provider.sendAsync(payload, callback);
});
it('signs a personal message with personal_sign', (done: DoneCallback) => {
- const messageHex = ethUtils.bufferToHex(ethUtils.toBuffer('hello world'));
+ const messageHex = ethUtils.bufferToHex(ethUtils.toBuffer(fixtureData.PERSONAL_MESSAGE_STRING));
const payload = {
jsonrpc: '2.0',
method: 'personal_sign',