Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit e24bc4b

Browse files
committed
Fix local sign and tests
1 parent 116fc01 commit e24bc4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/web3-eth/src/methods/EthSignMethod.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export default class EthSignMethod extends SignMethod {
6262
this.beforeExecution(this.moduleInstance);
6363

6464
let signedMessage = this.moduleInstance.accounts.sign(
65-
this.parameters[0],
66-
this.moduleInstance.accounts.wallet[this.parameters[1]].address
65+
this.parameters[1],
66+
this.moduleInstance.accounts.wallet[this.parameters[0]].address
6767
);
6868

6969
if (this.callback) {

packages/web3-eth/tests/src/methods/EthSignMethodTest.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ describe('EthSignMethodTest', () => {
4646

4747
expect(method.callback).toHaveBeenCalledWith(false, '0x00');
4848

49-
expect(method.parameters[0]).toEqual('string');
49+
expect(method.parameters[0]).toEqual('0x0');
5050

51-
expect(method.parameters[1]).toEqual('0x0');
51+
expect(method.parameters[1]).toEqual('string');
5252

5353
expect(formatters.inputAddressFormatter).toHaveBeenCalledWith('0x0');
5454

0 commit comments

Comments
 (0)