Skip to content

Commit

Permalink
Merge pull request #26 from ExtropyIO/fix_tests
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
extropyCoder authored Aug 31, 2024
2 parents 38151df + 3466b81 commit 85bc37a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Gas.UnitTests.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 85bc37a

Please sign in to comment.