From 136f89277d429f67def7d5d40349cc25c55c60b2 Mon Sep 17 00:00:00 2001 From: Felipe Novaes F Rocha Date: Fri, 22 Dec 2023 19:49:35 -0300 Subject: [PATCH] :sparkles: small warning fix in visibility --- pkg/contracts/src/RegistryGardens.sol | 2 +- pkg/contracts/test/RegistryTest.t.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/contracts/src/RegistryGardens.sol b/pkg/contracts/src/RegistryGardens.sol index ad59a457e..66de401f4 100644 --- a/pkg/contracts/src/RegistryGardens.sol +++ b/pkg/contracts/src/RegistryGardens.sol @@ -114,7 +114,7 @@ contract RegistryGardens is ReentrancyGuard { enabledStrategies[_newStrategy] = true; emit StrategyAdded(_newStrategy); } - function revertZeroAddress(address _address) internal { + function revertZeroAddress(address _address) internal pure { if(_address == address(0)) revert AddressCannotBeZero(); } function removeStrategy(address _strategy) public onlyCouncilMember{ diff --git a/pkg/contracts/test/RegistryTest.t.sol b/pkg/contracts/test/RegistryTest.t.sol index 01519594f..9108f8006 100644 --- a/pkg/contracts/test/RegistryTest.t.sol +++ b/pkg/contracts/test/RegistryTest.t.sol @@ -71,7 +71,7 @@ contract RegistryTest is Test, AlloSetup, RegistrySetupFull, Native, Errors, Gas registryGardens = RegistryGardens(registryFactory.createRegistry(params)); } - function _registryGardens() internal returns (RegistryGardens) { + function _registryGardens() internal view returns (RegistryGardens) { return registryGardens; }