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 ArbitrumLegacyTxData decoding #288

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

PlasmaPower
Copy link
Collaborator

@PlasmaPower PlasmaPower commented Feb 6, 2024

ArbitrumLegacyTxData is RLP encoded and decoded, but the fallback to LegacyTxData's implementation of encode and decode was causing panics: OffchainLabs/nitro#2131

@cla-bot cla-bot bot added the s CLA signed label Feb 6, 2024
Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PlasmaPower PlasmaPower merged commit 36cc857 into master Feb 6, 2024
3 checks passed
@PlasmaPower PlasmaPower deleted the fix-arb-legacy-decoding branch February 6, 2024 18:04
Copy link
Member

@Tristan-Wilson Tristan-Wilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I checked how we had missed this. In this commit 8303a8b upstream switched over from rlp.DecodeBytes on all the tx types to using their .decode methods, and we didn't have one for ArbitrumLegacyTxType 8303a8b#diff-8fb609018eccff10931645347515b8ecc194992cc4ef9e84ebdea87682dd50c3R218)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s CLA signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants