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

feat: allow configuring max initcode size #4452

Merged
merged 6 commits into from
Oct 10, 2023

Conversation

agostbiro
Copy link
Member

@agostbiro agostbiro commented Oct 6, 2023

Follow up from #4448 for NomicFoundation/edr#103

@agostbiro agostbiro self-assigned this Oct 6, 2023
@changeset-bot
Copy link

changeset-bot bot commented Oct 6, 2023

⚠️ No Changeset found

Latest commit: ea94c58

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hardhat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 11:11am
hardhat-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 11:11am

@@ -20,7 +20,7 @@ reqwest = { version = "0.11", features = ["blocking", "json"] }
# https://github.com/TrueLayer/reqwest-middleware/blob/main/reqwest-retry/CHANGELOG.md#unreleased
reqwest-middleware = { git = "https://github.com/TrueLayer/reqwest-middleware", rev = "a54319a", default-features = false }
reqwest-retry = { git = "https://github.com/TrueLayer/reqwest-middleware", rev = "a54319a", default-features = false }
revm-primitives = { git = "https://github.com/Wodann/revm", rev = "b6f8ebf", version = "1.1", default-features = false }
revm-primitives = { git = "https://github.com/agostbiro/revm", rev = "430502e", version = "1.1", default-features = false }
Copy link
Member Author

Choose a reason for hiding this comment

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

will need to change to Wodann/revm once the PR is merged

@@ -21,7 +21,7 @@ once_cell = { version = "1.18.0", default-features = false, features = ["alloc",
parking_lot = { version = "0.12.1", default-features = false }
rethnet_defaults = { version = "0.1.0-dev", path = "../rethnet_defaults" }
rethnet_eth = { version = "0.1.0-dev", path = "../rethnet_eth", features = ["serde"] }
revm = { git = "https://github.com/Wodann/revm", rev = "b6f8ebf", version = "3.3", default-features = false, features = ["dev", "secp256k1", "serde", "std"] }
revm = { git = "https://github.com/agostbiro/revm", rev = "430502e", version = "3.3", default-features = false, features = ["dev", "secp256k1", "serde", "std"] }
Copy link
Member Author

Choose a reason for hiding this comment

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

will need to change to Wodann/revm once the PR is merged

cfg.disable_block_gas_limit = disable_block_gas_limit;
cfg.disable_eip3607 = disable_eip3607;

Ok(cfg)
}
}

fn bigint_to_usize(value: BigInt) -> Result<Option<usize>, napi::Error> {
if let (false, size, true) = value.get_u64() {
Copy link
Member

Choose a reason for hiding this comment

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

This is legacy. For newer code, I've been using foo: u64 = BigInt::try_cast(value)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in 9a40d57

@@ -20,7 +20,7 @@ reqwest = { version = "0.11", features = ["blocking", "json"] }
# https://github.com/TrueLayer/reqwest-middleware/blob/main/reqwest-retry/CHANGELOG.md#unreleased
reqwest-middleware = { git = "https://github.com/TrueLayer/reqwest-middleware", rev = "a54319a", default-features = false }
reqwest-retry = { git = "https://github.com/TrueLayer/reqwest-middleware", rev = "a54319a", default-features = false }
revm-primitives = { git = "https://github.com/Wodann/revm", rev = "b6f8ebf", version = "1.1", default-features = false }
revm-primitives = { git = "https://github.com/Wodann/revm", rev = "4cf16b8", version = "1.1", default-features = false }
Copy link
Member

Choose a reason for hiding this comment

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

I merged the other PR and updated. The Cargo.lock changes might have to be updated as well though, @agostbiro

Copy link
Member Author

@agostbiro agostbiro Oct 9, 2023

Choose a reason for hiding this comment

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

Done in 7229668

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated to latest 0fc3c48

@Wodann Wodann temporarily deployed to edr-release October 6, 2023 16:29 — with GitHub Actions Inactive
crates/rethnet_evm_napi/src/config.rs Outdated Show resolved Hide resolved
@Wodann Wodann merged commit 64ae212 into rethnet/main Oct 10, 2023
75 of 77 checks passed
@Wodann Wodann deleted the rethnet/max-initcode-size-config branch October 10, 2023 20:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants