You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
When signing transactions in Ethereum Classic (might be applicable to other chains as well), the signing logic in the accounts package shall use the proper chainId (i.e. 61/62) if it is not specified in the transaction object by calling eth_chainId RPC.
Actual behavior
In the above mentioned case, the chainId value is actually retrieved using the net_version RPC call, which does return an incorrect value (prior EIP-155).
Steps to reproduce the behavior
Connect web3 to an Ethereum Classic node.
Create a wallet/account so allow web3 to sign the txs.
Send tx without specifying the chain ID.
Check the transaction was not created using a chainId value 61/62.
Expected behavior
When signing transactions in Ethereum Classic (might be applicable to other chains as well), the signing logic in the accounts package shall use the proper
chainId
(i.e. 61/62) if it is not specified in the transaction object by callingeth_chainId
RPC.Actual behavior
In the above mentioned case, the chainId value is actually retrieved using the
net_version
RPC call, which does return an incorrect value (prior EIP-155).Steps to reproduce the behavior
chainId
value 61/62.Error Logs
N/A
Versions
Web3.js@1.0.0-beta.37
Related to #1644.
A quick fix for beta.37 and previous versions is to apply this patch:
The text was updated successfully, but these errors were encountered: