Skip to content

Commit 0170924

Browse files
committed
derivation path changed and minor refactor for rawTx in transaction
sender
1 parent 6924e84 commit 0170924

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

federator/src/lib/HSM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = class HSM {
3333
}
3434

3535
send(msgToSign = '') {
36-
const payload = hsmPayloadBuilder(`sign`, `m/44'/137'/0'/0/0`, msgToSign);
36+
const payload = hsmPayloadBuilder(`sign`, `m/44'/60'/0'/0/0`, msgToSign);
3737
return this.client.write(`${payload}\n`);
3838
}
3939

federator/src/lib/TransactionSender.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ module.exports = class TransactionSender {
198198
const chainId = await this.getChainId();
199199
let txHash;
200200
let receipt;
201+
let from = await this.getAddress(privateKey);
202+
let rawTx = await this.createRawTransaction(from, to, data, value);
201203
try {
202-
let from = await this.getAddress(privateKey);
203-
let rawTx = await this.createRawTransaction(from, to, data, value);
204204
if (privateKey && privateKey.length || useHSM) {
205205
let signedTx = await this.signRawTransaction(rawTx, privateKey, useHSM);
206206
const serializedTx = ethUtils.bufferToHex(signedTx.serialize());

0 commit comments

Comments
 (0)