Skip to content

fix(tx): support EIP-155 unsigned encoding and widen v to uint256 in LegacyTransactionLib - #140

Open
yappermoar-boop wants to merge 1 commit into
tempoxyz:masterfrom
yappermoar-boop:fix-legacy-tx-eip155-support-and-v-type
Open

fix(tx): support EIP-155 unsigned encoding and widen v to uint256 in LegacyTransactionLib#140
yappermoar-boop wants to merge 1 commit into
tempoxyz:masterfrom
yappermoar-boop:fix-legacy-tx-eip155-support-and-v-type

Conversation

@yappermoar-boop

Copy link
Copy Markdown

In LegacyTransactionLib.sol, widened v from uint8 to uint256 in encodeWithSignature to prevent overflow for EIP-155 chain IDs (where v = chainId * 2 + 35 + yParity > 255 for chainId > 110). Also added encode(self, vm, chainId) overload for EIP-155 9-field replay-protected unsigned transaction encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant