diff --git a/.forge-snapshots/manySstore.snap b/.forge-snapshots/manySstore.snap index 1fbb791..ef72e9b 100644 --- a/.forge-snapshots/manySstore.snap +++ b/.forge-snapshots/manySstore.snap @@ -1 +1 @@ -49284 \ No newline at end of file +70348 \ No newline at end of file diff --git a/.forge-snapshots/singleSstore.snap b/.forge-snapshots/singleSstore.snap index 80ecb46..d049b15 100644 --- a/.forge-snapshots/singleSstore.snap +++ b/.forge-snapshots/singleSstore.snap @@ -1 +1 @@ -27395 \ No newline at end of file +48459 \ No newline at end of file diff --git a/.forge-snapshots/singleSstoreClosure.snap b/.forge-snapshots/singleSstoreClosure.snap index 962f066..c59e906 100644 --- a/.forge-snapshots/singleSstoreClosure.snap +++ b/.forge-snapshots/singleSstoreClosure.snap @@ -1 +1 @@ -25205 \ No newline at end of file +46269 \ No newline at end of file diff --git a/.forge-snapshots/singleSstoreLastCall.snap b/.forge-snapshots/singleSstoreLastCall.snap index 97400eb..4c52430 100644 --- a/.forge-snapshots/singleSstoreLastCall.snap +++ b/.forge-snapshots/singleSstoreLastCall.snap @@ -1 +1 @@ -22365 \ No newline at end of file +43429 \ No newline at end of file diff --git a/.forge-snapshots/sstoreClosure.snap b/.forge-snapshots/sstoreClosure.snap index edc2416..5ed0938 100644 --- a/.forge-snapshots/sstoreClosure.snap +++ b/.forge-snapshots/sstoreClosure.snap @@ -1 +1 @@ -47094 \ No newline at end of file +68158 \ No newline at end of file diff --git a/test/GasSnapshot.t.sol b/test/GasSnapshot.t.sol index 5973a35..baeb3c7 100644 --- a/test/GasSnapshot.t.sol +++ b/test/GasSnapshot.t.sol @@ -26,7 +26,7 @@ contract GasSnapshotTest is Test, GasSnapshot { snapEnd(); string memory value = vm.readLine(".forge-snapshots/singleSstore.snap"); - assertEq(value, "27395"); + assertEq(value, "48459"); } function testSingleSstoreLastCall() public { @@ -35,21 +35,21 @@ contract GasSnapshotTest is Test, GasSnapshot { string memory value = vm.readLine(".forge-snapshots/singleSstoreLastCall.snap"); // includes 21,000 overhead for transaction, 20,000 clean SSTORE - assertEq(value, "22365"); + assertEq(value, "43429"); } function testSingleSstoreClosure() public { snap("singleSstoreClosure", simpleOperations.singleSstore); string memory value = vm.readLine(".forge-snapshots/singleSstoreClosure.snap"); - assertEq(value, "25205"); + assertEq(value, "46269"); } function testManySstoreClosure() public { snap("sstoreClosure", simpleOperations.manySstore); string memory value = vm.readLine(".forge-snapshots/sstoreClosure.snap"); - assertEq(value, "47094"); + assertEq(value, "68158"); } function testInternalClosure() public { @@ -96,7 +96,7 @@ contract GasSnapshotTest is Test, GasSnapshot { snapEnd(); string memory value = vm.readLine(".forge-snapshots/manySstore.snap"); - assertEq(value, "49284"); + assertEq(value, "70348"); } function testSnapshotCodeSize() public { @@ -132,7 +132,7 @@ contract GasSnapshotTest is Test, GasSnapshot { // preloaded with the wrong value snapStart("checkManySstore"); simpleOperations.manySstore(); - vm.expectRevert(abi.encodeWithSelector(GasSnapshot.GasMismatch.selector, 1, 52761)); + vm.expectRevert(abi.encodeWithSelector(GasSnapshot.GasMismatch.selector, 1, 73825)); snapEnd(); }