From ba6c3cdc7ccc238c293cb0128ade2d3bd5d3f872 Mon Sep 17 00:00:00 2001 From: dianakocsis Date: Fri, 10 Jan 2025 09:38:16 -0500 Subject: [PATCH] snapshot of both proxy and position descriptor bytecode --- snapshots/PositionDescriptorTest.json | 3 ++- test/PositionDescriptor.t.sol | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/snapshots/PositionDescriptorTest.json b/snapshots/PositionDescriptorTest.json index f47e81a9..8ca090f1 100644 --- a/snapshots/PositionDescriptorTest.json +++ b/snapshots/PositionDescriptorTest.json @@ -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" } \ No newline at end of file diff --git a/test/PositionDescriptor.t.sol b/test/PositionDescriptor.t.sol index 6d62e7dd..0d725cd0 100644 --- a/test/PositionDescriptor.t.sol +++ b/test/PositionDescriptor.t.sol @@ -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 {