-
Notifications
You must be signed in to change notification settings - Fork 0
update deps and add check bytecode hash #13
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
Changes from all commits
151bbe0
cff6ef2
29023f3
435b3f2
d7abb8c
79cd189
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| out | ||
| cache | ||
| cache | ||
| .env |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| { | ||
| "lib/forge-std": { | ||
| "rev": "b8f065fda83b8cd94a6b2fec8fcd911dc3b444fd" | ||
| "rev": "1801b0541f4fda118a10798fd3486bb7051c5dd6" | ||
| }, | ||
| "lib/rain.solmem": { | ||
| "rev": "228b35c6725877e7fbcd2432b4c692357f16f510" | ||
| "rev": "26bce6197383f193e35326bab4d4424cf6eafde7" | ||
| } | ||
| } |
| +31 −30 | .gas-snapshot | |
| +38 −21 | flake.lock | |
| +1 −1 | foundry.lock | |
| +1 −1 | lib/forge-std | |
| +5 −0 | src/lib/LibStackPointer.sol | |
| +16 −0 | src/lib/LibStackSentinel.sol | |
| +4 −2 | test/lib/LibBytes32MatrixSlow.sol | |
| +4 −2 | test/lib/LibUint256MatrixSlow.sol | |
| +54 −52 | test/src/lib/LibBytes32Array.arrayFrom.t.sol | |
| +23 −2 | test/src/lib/LibStackSentinel.t.sol |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||||||||||||||
| // SPDX-License-Identifier: LicenseRef-DCL-1.0 | ||||||||||||||||
| // SPDX-FileCopyrightText: Copyright (c) 2020 Rain Open Source Software Ltd | ||||||||||||||||
| pragma solidity ^0.8.25; | ||||||||||||||||
|
|
||||||||||||||||
| import {Vm} from "forge-std/StdCheats.sol"; | ||||||||||||||||
|
|
||||||||||||||||
| library LibExtrospectTestProd { | ||||||||||||||||
| uint256 constant PROD_TEST_BLOCK_NUMBER_ARBITRUM = 424463066; | ||||||||||||||||
|
|
||||||||||||||||
| function createSelectForkArbitrum(Vm vm) internal { | ||||||||||||||||
| vm.createSelectFork(vm.envString("RPC_URL_ARBITRUM_FORK"), PROD_TEST_BLOCK_NUMBER_ARBITRUM); | ||||||||||||||||
| } | ||||||||||||||||
|
Comment on lines
+10
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider adding a descriptive error message if the environment variable is missing. If ♻️ Suggested improvement function createSelectForkArbitrum(Vm vm) internal {
+ // Will revert if RPC_URL_ARBITRUM_FORK is not set
vm.createSelectFork(vm.envString("RPC_URL_ARBITRUM_FORK"), PROD_TEST_BLOCK_NUMBER_ARBITRUM);
}Alternatively, you could use 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
| } | ||||||||||||||||
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.
🧹 Nitpick | 🔵 Trivial
Minor: Pragma version inconsistency.
This file uses
^0.8.25(caret) while other test files in this PR use=0.8.25(exact version pinning). Consider aligning for consistency.♻️ Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents