Skip to content
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

add code hash snap #417

Merged
merged 5 commits into from
Dec 18, 2024
Merged

add code hash snap #417

merged 5 commits into from
Dec 18, 2024

Conversation

snreynolds
Copy link
Member

Related Issue

Which issue does this pull request resolve?

Description of changes

@snreynolds snreynolds requested a review from hensha256 December 13, 2024 13:55
function test_posm_initcodeHash() public {
vm.snapshotValue(
"position manager initcode hash (without constructor params, as uint256)",
uint256(keccak256(abi.encodePacked(vm.getCode("PositionManager.sol:PositionManager"))))
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add one for v4router too please?

Copy link
Collaborator

@saucepoint saucepoint Dec 13, 2024

Choose a reason for hiding this comment

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

i think this function should be in PositionManager.gas.t.sol

its more consistent with how we're doing it in core, and will add the snapshot to PosMGasTest.json (vs. writing yet another artifact file)

@saucepoint saucepoint merged commit c42499d into main Dec 18, 2024
3 checks passed
@saucepoint saucepoint deleted the code-hash-snap branch December 18, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants