Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat(core): Utility to detect Shanghai-enabled chains #2431

Merged
merged 3 commits into from
May 25, 2023

Conversation

Evalir
Copy link
Contributor

@Evalir Evalir commented May 24, 2023

Motivation

We want to better handle EVM discrepancies between different chains (see foundry-rs/foundry#748). One of these things would be a little utility on the Chain type to quickly detect if a chain is Shanghai-enabled or not.

Solution

Adds the utility

PR Checklist

  • [n/a] Added Tests
  • [n/a] Added Documentation
  • [n/a] Breaking changes

@@ -360,6 +360,13 @@ impl Chain {
}
}

pub const fn is_shanghai(&self) -> bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

needs docs, and I think we settled on supports_push0

#2430

@Evalir Evalir requested a review from mattsse May 25, 2023 14:49
@DaniPopes DaniPopes merged commit e1dcc7f into gakonst:master May 25, 2023
@Evalir Evalir deleted the evalir/add-is-shanghai branch April 9, 2024 17:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants