CTB: Pass arguments as calldata in bridge and messengers when possible#3038
CTB: Pass arguments as calldata in bridge and messengers when possible#3038mergify[bot] merged 1 commit intodevelopfrom
Conversation
|
1241842 to
3f07d1b
Compare
|
Hey @maurelian! This PR has merge conflicts. Please fix them before continuing review. |
3f07d1b to
b0ec624
Compare
|
Hey @maurelian! This PR has merge conflicts. Please fix them before continuing review. |
This saves about 200 gas
b0ec624 to
613d8a6
Compare
|
@mergify refresh |
✅ Pull request refreshed |
|
This PR has been added to the merge queue, and will be merged soon. |
|
This PR is next in line to be merged, and will be merged as soon as checks pass. |
- Replaced .rollup_config(cfg.clone()) with .rollup_config(cfg) and introduced a single pre-clone cfg_for_reset used for the reset’s system_config_by_number call. - Passed l1_cfg by move to StatefulAttributesBuilder::new instead of cloning since it’s not used afterward. - This reduces minor allocations and aligns with established patterns (see crates/providers/providers-alloy/src/pipeline.rs), without changing behavior or ownership semantics. Co-authored-by: theo <80177219+theochap@users.noreply.github.com>
This saves about 200 gas when applied to
baseGas.The other changes in the xDM and bridge just feel like a best practice.