Skip to content

Conversation

@maurelian
Copy link
Contributor

@maurelian maurelian commented Nov 19, 2025

Removes the usage of DelegateCaller. The pattern established is much nicer.

However DelegateCaller is not deleted here, so as not to conflict with #18079 which makes use of it.

@maurelian maurelian added the force-use-fresh-artifacts Disable artifact `latest` fallback and force fresh compilation (requires manual CI rerun) label Nov 21, 2025
@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.77%. Comparing base (689fd51) to head (201860e).
⚠️ Report is 5 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #18331      +/-   ##
===========================================
+ Coverage    74.91%   79.77%   +4.86%     
===========================================
  Files          181      126      -55     
  Lines        10930     6899    -4031     
===========================================
- Hits          8188     5504    -2684     
+ Misses        2598     1395    -1203     
+ Partials       144        0     -144     
Flag Coverage Δ
cannon-go-tests-64 ?
contracts-bedrock-tests 79.77% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 55 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Adds a prankDelegateCall() helper function to eliminate repetitive code pattern for handling Foundry's requirement that addresses have at least one byte of code to prank delegatecalls. This helper combines vm.etch() and vm.prank(_, true) into a single reusable function.
@maurelian maurelian marked this pull request as ready for review November 21, 2025 20:38
@maurelian maurelian requested a review from a team as a code owner November 21, 2025 20:38
@maurelian maurelian requested a review from alcueca November 21, 2025 20:38
@maurelian maurelian marked this pull request as draft November 21, 2025 20:39
@maurelian
Copy link
Contributor Author

Keeping in draft so as not to block #18079.

Prevents merge conflicts with other inflight work
@maurelian maurelian marked this pull request as ready for review November 21, 2025 21:07
vm.etch(_caller, hex"00");
}
vm.prank(_caller, true);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created this as a free function here because I couldn't really find an appropriate place to put it, and it wasn't needed in ForkLive (the only other file that used DelegateCaller).

I could move it into CommonTest if preferred, but it doesn't quite match the nature of the existing functions there.

Copy link
Member

Choose a reason for hiding this comment

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

I am fine with having it here as I dont know where I would put it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

force-use-fresh-artifacts Disable artifact `latest` fallback and force fresh compilation (requires manual CI rerun)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants