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

Additional contracts serialization fix #6391

Merged

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Nov 21, 2023

Motivation

Right now AdditionalContract.init_code is written with 0x prefix and deserialized with "hex" which is not able to parse '0x' prefix.

This makes impossible resuming any deployments which have non-empty additionalContracts for any transaction.

Solution

Change type to alloy_primitives::Bytes

@klkvr klkvr changed the title Klkvr/additional contracts serialization Additional contracts serialization fix Nov 21, 2023
Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

very good catch!

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice

@mattsse mattsse merged commit f689fb8 into foundry-rs:master Nov 21, 2023
19 checks passed
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.

3 participants