This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Description
Expected behavior
Should return correct v,r,s for web3.eth.accounts.signTransaction
Actual behavior
Always returning v: '0x00', r: '0x00000000000000000000', s: '0x00000000000000000000',
Steps to reproduce the behavior
const web3 = new Web3(
"https://mainnet.infura.io/v3/ID_OF_PROJ"
);
let data = await web3.eth.accounts.signTransaction({
to: '0xF0109fC8DF283027b6285cc889F5aA624EaC1F55',
value: '1000',
gas: 21000,
}, '0x0000000PRIVATEKEY');
console.log(data)
Logs
{ messageHash: '0x4bec55a14404b60aaf666effe60e67879d50072fd3a1312a76d5e9eeb7686d56', v: '0x00', r: '0x00000000000000000000', s: '0x00000000000000000000', rawTransaction: '0xf866808512bd61afdc82520894f0109fc8df283027b6285cc889f5aa624eac1f558203e88026a0a9fb8610d63edc53f11f8840f8b213ff677ffa22f3757c450ed48966e7699f0da06c39e77f71d7f969e899b4bb511931b461e635fde556394b1837ce946e99909f', transactionHash: '0xe8c2ffa6043bd43e096030ee4615c56514caf4e5debab5999ef62c168fdd0d20' }
Environment
"web3": "^1.5.2"
Reactions are currently unavailable
Expected behavior
Should return correct v,r,s for
web3.eth.accounts.signTransactionActual behavior
Always returning
v: '0x00', r: '0x00000000000000000000', s: '0x00000000000000000000',Steps to reproduce the behavior
Logs
{ messageHash: '0x4bec55a14404b60aaf666effe60e67879d50072fd3a1312a76d5e9eeb7686d56', v: '0x00', r: '0x00000000000000000000', s: '0x00000000000000000000', rawTransaction: '0xf866808512bd61afdc82520894f0109fc8df283027b6285cc889f5aa624eac1f558203e88026a0a9fb8610d63edc53f11f8840f8b213ff677ffa22f3757c450ed48966e7699f0da06c39e77f71d7f969e899b4bb511931b461e635fde556394b1837ce946e99909f', transactionHash: '0xe8c2ffa6043bd43e096030ee4615c56514caf4e5debab5999ef62c168fdd0d20' }Environment
"web3": "^1.5.2"