Skip to content

Commit

Permalink
bytecode size test
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakocsis committed Nov 25, 2024
1 parent 4ac5f57 commit c7866a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .forge-snapshots/positionManager bytecode size.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26931
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[profile.default]
out = 'foundry-out'
solc_version = '0.8.26'
optimizer_runs = 44444444
optimizer_runs = 1
via_ir = true
ffi = true
fs_permissions = [{ access = "read-write", path = ".forge-snapshots/"}]
Expand Down
4 changes: 4 additions & 0 deletions test/position-managers/PositionManager.gas.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ contract PosMGasTest is Test, PosmTestSetup, GasSnapshot {
sub = new MockSubscriber(lpm);
}

function test_bytecodeSize_positionManager() public {
snapSize("positionManager bytecode size", address(lpm));
}

function test_gas_mint_withClose() public {
Plan memory planner = Planner.init().add(
Actions.MINT_POSITION,
Expand Down

0 comments on commit c7866a1

Please sign in to comment.