Fix Ledger tests given change from personal_sign to eth_sign

This commit is contained in:
Fabio Berger
2017-12-28 09:46:50 +01:00
parent c36a7471a8
commit ee463058f1
2 changed files with 7 additions and 7 deletions

View File

@@ -121,8 +121,8 @@ describe('LedgerSubprovider', () => {
const messageHex = ethUtils.bufferToHex(ethUtils.toBuffer('hello world'));
const payload = {
jsonrpc: '2.0',
method: 'personal_sign',
params: [messageHex, '0x0000000000000000000000000000000000000000'],
method: 'eth_sign',
params: ['0x0000000000000000000000000000000000000000', messageHex],
id: 1,
};
const callback = reportCallbackErrors(done)((err: Error, response: Web3.JSONRPCResponsePayload) => {
@@ -157,12 +157,12 @@ describe('LedgerSubprovider', () => {
});
});
describe('failure cases', () => {
it('should throw if `data` param not hex when calling personal_sign', (done: DoneCallback) => {
it('should throw if `data` param not hex when calling eth_sign', (done: DoneCallback) => {
const nonHexMessage = 'hello world';
const payload = {
jsonrpc: '2.0',
method: 'personal_sign',
params: [nonHexMessage, '0x0000000000000000000000000000000000000000'],
method: 'eth_sign',
params: ['0x0000000000000000000000000000000000000000', nonHexMessage],
id: 1,
};
const callback = reportCallbackErrors(done)((err: Error, response: Web3.JSONRPCResponsePayload) => {