-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(op): set optimism flag correctly #6593
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
Conversation
| } | ||
|
|
||
| #[cfg(not(feature = "optimism"))] | ||
| let cfg_with_handler_cfg = CfgEnvWithHandlerCfg::new(cfg, spec_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use ::new here is_optimism flag would be set to false
crates/rpc/rpc/src/eth/api/call.rs
Outdated
|
|
||
| let cfg_with_spec_id = CfgEnvWithHandlerCfg::new(env.cfg.clone(), env.handler_cfg.spec_id); | ||
| let cfg_with_spec_id = | ||
| CfgEnvWithHandlerCfg { cfg_env: env.cfg.clone(), handler_cfg: env.handler_cfg.clone() }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is_optimism flag would be lost
Rjected
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, yeah setting if is_optimism makes sense here. would also add docs saying that is_optimism is set to false when new is used
Have added the proper constructor here: bluealloy/revm#1087 Where did you mean to add the doc in revm? |
Just above |
mattsse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm losing my mind with the semicolon back and forth
|
unfortunately still seeing the same i thought fixing |
In two places we didn't set optimism flag
In the Node builder trait in
crates/node-api/src/engine/traits.rs. @mattsse check if this is a bug or not, maybe it is overwritten.And in
crates/rpc/rpc/src/eth/api/call.rsflag would be lost.Will add proper constructors to revm but to fix it asap this should be fine
should close #6593