Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid rlp data for legacy transactions #212

Merged
merged 1 commit into from
Dec 2, 2023
Merged

Conversation

mikesposito
Copy link
Member

@mikesposito mikesposito commented Dec 1, 2023

This commit introduced a bug with legacy transactions.

With @ethereumjs/rlp, RLP.encode(..) returns a Uint8Array, and Uint8Array.toString() does not return a hex value as we expect in the code.

This PR converts the returned Uint8Array into a Buffer, and then into a hex string.

See MetaMask/metamask-extension#22118

@mikesposito mikesposito requested a review from a team as a code owner December 1, 2023 17:19
@mikesposito mikesposito merged commit 4f24e1d into main Dec 2, 2023
17 checks passed
@mikesposito mikesposito deleted the fix/invalid-rlp branch December 2, 2023 10:08
legobeat pushed a commit to legobeat/eth-ledger-bridge-keyring that referenced this pull request Dec 2, 2023
@legobeat legobeat mentioned this pull request Dec 2, 2023
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.

2 participants