Skip to content

Commit

Permalink
Revert "snapLastCall to all"
Browse files Browse the repository at this point in the history
This reverts commit 261688e.
  • Loading branch information
Jun1on committed Jul 17, 2024
1 parent d9b3d8f commit f63b73f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/OracleGrow10Slots.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
249167
254164
2 changes: 1 addition & 1 deletion .forge-snapshots/OracleGrow10SlotsCardinalityGreater.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
249167
249653
2 changes: 1 addition & 1 deletion .forge-snapshots/OracleGrow1Slot.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
49052
54049
2 changes: 1 addition & 1 deletion .forge-snapshots/OracleGrow1SlotCardinalityGreater.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
49052
49549
12 changes: 8 additions & 4 deletions test/Oracle.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,29 @@ contract TestOracle is Test, GasSnapshot {
}

function testGas1Slot() public {
snapStart("OracleGrow1Slot");
initializedOracle.grow(2);
snapLastCall("OracleGrow1Slot");
snapEnd();
}

function testGas10Slots() public {
snapStart("OracleGrow10Slots");
initializedOracle.grow(11);
snapLastCall("OracleGrow10Slots");
snapEnd();
}

function testGas1SlotCardinalityGreater() public {
initializedOracle.grow(2);
snapStart("OracleGrow1SlotCardinalityGreater");
initializedOracle.grow(3);
snapLastCall("OracleGrow1SlotCardinalityGreater");
snapEnd();
}

function testGas10SlotCardinalityGreater() public {
initializedOracle.grow(2);
snapStart("OracleGrow10SlotsCardinalityGreater");
initializedOracle.grow(12);
snapLastCall("OracleGrow10SlotsCardinalityGreater");
snapEnd();
}

function testWrite() public {
Expand Down

0 comments on commit f63b73f

Please sign in to comment.