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 - Activate EIP-170 at Shanghai #45

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Conversation

debjit-bw
Copy link
Member

Activates EIP-170 at a different fork in Gnosis Chain (Shanghai) compared to Ethereum Mainnet (Spurious Dragon). Unless Shanghai is active, contracts of any size are allowed.

This problem was detected while applying block #26688928.

@debjit-bw debjit-bw changed the title fix - contract code size limit fix - Activate EIP-170 at Shanghai Jan 3, 2025
@debjit-bw debjit-bw marked this pull request as ready for review January 3, 2025 12:11
@debjit-bw debjit-bw requested a review from dapplion January 3, 2025 12:11
.is_shanghai_active_at_timestamp(attributes.timestamp)
{
cfg.limit_contract_code_size = Some(usize::MAX);
}
Copy link
Member

Choose a reason for hiding this comment

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

You should de-duplicate the code from both places

Copy link
Member

@dapplion dapplion left a comment

Choose a reason for hiding this comment

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

Nice!

@debjit-bw debjit-bw merged commit b97eeda into master Jan 7, 2025
7 checks passed
@debjit-bw debjit-bw deleted the contract-code-size-limit branch January 7, 2025 12:12
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