From 261688ebc110e6ac5c4e0a459bbc0ff56d9ebf83 Mon Sep 17 00:00:00 2001 From: Junion <69495294+Jun1on@users.noreply.github.com> Date: Sun, 30 Jun 2024 22:46:47 -0400 Subject: [PATCH] snapLastCall to all --- .forge-snapshots/OracleGrow10Slots.snap | 2 +- .../OracleGrow10SlotsCardinalityGreater.snap | 2 +- .forge-snapshots/OracleGrow1Slot.snap | 2 +- .../OracleGrow1SlotCardinalityGreater.snap | 2 +- test/Oracle.t.sol | 12 ++++-------- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.forge-snapshots/OracleGrow10Slots.snap b/.forge-snapshots/OracleGrow10Slots.snap index 96c9f369..2964e534 100644 --- a/.forge-snapshots/OracleGrow10Slots.snap +++ b/.forge-snapshots/OracleGrow10Slots.snap @@ -1 +1 @@ -254164 \ No newline at end of file +249167 \ No newline at end of file diff --git a/.forge-snapshots/OracleGrow10SlotsCardinalityGreater.snap b/.forge-snapshots/OracleGrow10SlotsCardinalityGreater.snap index 9fc5bce2..2964e534 100644 --- a/.forge-snapshots/OracleGrow10SlotsCardinalityGreater.snap +++ b/.forge-snapshots/OracleGrow10SlotsCardinalityGreater.snap @@ -1 +1 @@ -249653 \ No newline at end of file +249167 \ No newline at end of file diff --git a/.forge-snapshots/OracleGrow1Slot.snap b/.forge-snapshots/OracleGrow1Slot.snap index ced15d76..aa66d075 100644 --- a/.forge-snapshots/OracleGrow1Slot.snap +++ b/.forge-snapshots/OracleGrow1Slot.snap @@ -1 +1 @@ -54049 \ No newline at end of file +49052 \ No newline at end of file diff --git a/.forge-snapshots/OracleGrow1SlotCardinalityGreater.snap b/.forge-snapshots/OracleGrow1SlotCardinalityGreater.snap index 8ad5646e..aa66d075 100644 --- a/.forge-snapshots/OracleGrow1SlotCardinalityGreater.snap +++ b/.forge-snapshots/OracleGrow1SlotCardinalityGreater.snap @@ -1 +1 @@ -49549 \ No newline at end of file +49052 \ No newline at end of file diff --git a/test/Oracle.t.sol b/test/Oracle.t.sol index cc465a02..4b8f714c 100644 --- a/test/Oracle.t.sol +++ b/test/Oracle.t.sol @@ -89,29 +89,25 @@ contract TestOracle is Test, GasSnapshot { } function testGas1Slot() public { - snapStart("OracleGrow1Slot"); initializedOracle.grow(2); - snapEnd(); + snapLastCall("OracleGrow1Slot"); } function testGas10Slots() public { - snapStart("OracleGrow10Slots"); initializedOracle.grow(11); - snapEnd(); + snapLastCall("OracleGrow10Slots"); } function testGas1SlotCardinalityGreater() public { initializedOracle.grow(2); - snapStart("OracleGrow1SlotCardinalityGreater"); initializedOracle.grow(3); - snapEnd(); + snapLastCall("OracleGrow1SlotCardinalityGreater"); } function testGas10SlotCardinalityGreater() public { initializedOracle.grow(2); - snapStart("OracleGrow10SlotsCardinalityGreater"); initializedOracle.grow(12); - snapEnd(); + snapLastCall("OracleGrow10SlotsCardinalityGreater"); } function testWrite() public {