Skip to content

Commit 27028c2

Browse files
committed
add mock router snap
1 parent d275f15 commit 27028c2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

snapshots/V4RouterTest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
"V4Router_ExactOut3Hops_nativeOut": "224943",
2323
"V4Router_ExactOutputSingle": "133337",
2424
"V4Router_ExactOutputSingle_nativeIn_sweepETH": "126419",
25-
"V4Router_ExactOutputSingle_nativeOut": "119821"
25+
"V4Router_ExactOutputSingle_nativeOut": "119821",
26+
"position manager initcode hash (without constructor params, as uint256)": "27545762869727400677117557485685740862616789454191614676777323590122002226479"
2627
}

test/router/V4Router.gas.t.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ contract V4RouterTest is RoutingTestHelpers {
2222
vm.snapshotValue("V4Router_Bytecode", address(router).code.length);
2323
}
2424

25+
function test_router_initcodeHash() public {
26+
vm.snapshotValue(
27+
"position manager initcode hash (without constructor params, as uint256)",
28+
uint256(keccak256(abi.encodePacked(vm.getCode("MockV4Router.sol:MockV4Router"))))
29+
);
30+
}
31+
2532
/*//////////////////////////////////////////////////////////////
2633
ERC20 -> ERC20 EXACT INPUT
2734
//////////////////////////////////////////////////////////////*/

0 commit comments

Comments
 (0)