From 3466b81948e5ba348b27a317ea0909a0f5da9878 Mon Sep 17 00:00:00 2001 From: Laurence Kirk Date: Sat, 31 Aug 2024 14:11:32 +0100 Subject: [PATCH] Fix warnings --- test/Gas.UnitTests.t.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Gas.UnitTests.t.sol b/test/Gas.UnitTests.t.sol index a6a5fad..570fcf2 100644 --- a/test/Gas.UnitTests.t.sol +++ b/test/Gas.UnitTests.t.sol @@ -44,7 +44,7 @@ function get_random_address(uint256 offset) internal returns (address) { } - function test_admins() public { + function test_admins() public view { for (uint8 i = 0; i < admins.length; ++i) { assertEq(admins[i], gas.administrators(i)); } @@ -175,12 +175,12 @@ function get_random_address(uint256 offset) internal returns (address) { assertEq(gas.balances(_recipient),(_preRecipientAmount + _amount) - gas.whitelist(_sender)); } - function testBalanceOf() public { + function testBalanceOf() public view { uint256 bal = gas.balanceOf(owner); assertEq(bal, totalSupply); } - function testCheckForAdmin() public { + function testCheckForAdmin() public view { bool isAdmin = gas.checkForAdmin(owner); assertEq(isAdmin, true); }