From cb12c772aeac2b23f8cc5ac43aabf7511ef184ee Mon Sep 17 00:00:00 2001 From: Mitja Belak Date: Thu, 24 Oct 2024 14:35:55 +0200 Subject: [PATCH] Made tests pure where applicable --- test/RaidGeldUtils.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/RaidGeldUtils.t.sol b/test/RaidGeldUtils.t.sol index 2c377ed..2cbde33 100644 --- a/test/RaidGeldUtils.t.sol +++ b/test/RaidGeldUtils.t.sol @@ -6,7 +6,7 @@ import {Army, Raider} from "../src/RaidGeld.sol"; import "../src/RaidGeldUtils.sol"; contract raid_geldTest is Test { - function test_0_unit_price() public { + function test_0_unit_price() pure public { // buying 1 unit of moloch_denier uint256 basePriceMolochDenier = RaidGeldUtils.calculateUnitPrice(0, 0, 1); assertEq(basePriceMolochDenier, 38); @@ -28,7 +28,7 @@ contract raid_geldTest is Test { assertGt(price, basePriceChamp * 12); } - function test_1_profits_per_second() public { + function test_1_profits_per_second() pure public { Army memory army = Army({ moloch_denier: Raider({ level: 1}), apprentice: Raider({ level: 0}),