Skip to content

Commit

Permalink
snapshot of both proxy and position descriptor bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakocsis committed Jan 10, 2025
1 parent 6e67c90 commit ba6c3cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion snapshots/PositionDescriptorTest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"position descriptor initcode hash (without constructor params, as uint256)": "90002686278379416913385532438840669828848441637921711710845035729125835578244",
"positionDescriptor bytecode size": "1488"
"positionDescriptor bytecode size": "24138",
"proxy bytecode size": "1488"
}
6 changes: 5 additions & 1 deletion test/PositionDescriptor.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ contract PositionDescriptorTest is Test, PosmTestSetup {
}

function test_bytecodeSize_positionDescriptor() public {
vm.snapshotValue("positionDescriptor bytecode size", address(proxyAsImplementation).code.length);
vm.snapshotValue("positionDescriptor bytecode size", address(positionDescriptor).code.length);
}

function test_bytecodeSize_proxy() public {
vm.snapshotValue("proxy bytecode size", address(proxyAsImplementation).code.length);
}

function test_setup_succeeds() public view {
Expand Down

0 comments on commit ba6c3cd

Please sign in to comment.