Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
cdc52a14
Unverified
Commit
cdc52a14
authored
Nov 07, 2024
by
Michael Amadi
Committed by
GitHub
Nov 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add createX runtime bytecode hash check (#12776)
parent
21e1291a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Preinstalls.t.sol
packages/contracts-bedrock/test/L2/Preinstalls.t.sol
+11
-0
No files found.
packages/contracts-bedrock/test/L2/Preinstalls.t.sol
View file @
cdc52a14
...
...
@@ -118,4 +118,15 @@ contract PreinstallsTest is CommonTest {
function test_preinstall_createX_succeeds() external view {
assertPreinstall(Preinstalls.CreateX, Preinstalls.CreateXCode);
}
function test_createX_runtimeBytecodeHash() external view {
bytes memory createXRuntimeBytecode = Preinstalls.CreateX.code;
bytes32 createXRuntimeBytecodeHash = keccak256(createXRuntimeBytecode);
assertEq(
createXRuntimeBytecodeHash,
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f,
"CreateX runtime bytecode hash mismatch"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment