-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
contracts-bedrock: forge-std v1.8.1 #10161
Conversation
WalkthroughWalkthroughThe updates across the Changes
These changes collectively aim to streamline the contract codebase, ensuring better maintainability and clearer understanding of each function's impact on the system state. Recent Review DetailsConfiguration used: .coderabbit.yml Files ignored due to path filters (1)
Files selected for processing (57)
Files not processed due to max files limit (18)
Files skipped from review as they are similar to previous changes (55)
Additional comments not posted (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
TYVM
Massive amounts of compiler warnings, i think its because its going from app layer assertions to native assertions |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10161 +/- ##
===========================================
+ Coverage 42.40% 43.56% +1.16%
===========================================
Files 73 41 -32
Lines 4830 3971 -859
Branches 766 614 -152
===========================================
- Hits 2048 1730 -318
+ Misses 2676 2135 -541
Partials 106 106
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Actionable comments posted: 2
This slightly reduced build time 2.39 on current branch |
Maybe I am smol brain but foundry-rs/forge-std#503 (comment) isn't just working 🤔 |
The
Not sure why this would happen, looks like now its calling the portal and not the portal2? edit: this was because the storage layout of the deploy config changed, so i removed the need to use a magic slot to set the value |
ffdfa3a
to
d1fd84f
Compare
Updates to latest `forge-std` release to get access to the latest cheatcodes with a nice API. https://github.com/foundry-rs/forge-std/releases/tag/v1.8.1
d1fd84f
to
25ce3f3
Compare
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.
Actionable comments posted: 0
Actionable comments outside the diff hunks (1)
packages/contracts-bedrock/test/L1/OptimismPortal.t.sol (1)
Line range hint
519-519
: The usage ofblockhash(block.number)
in thetest_proveWithdrawalTransaction_replayProveChangedOutputRootAndOutputIndex_succeeds
function will always return 0, which may not be the intended behavior. Consider using a different block number that is within the last 256 blocks for a valid hash.- blockhash(block.number) + blockhash(block.number - 1) // Assuming the current block number minus one is within the last 256 blocks
Description
Updates to latest
forge-std
release to get access to the latestcheatcodes with a nice API.
https://github.com/foundry-rs/forge-std/releases/tag/v1.8.1