From f30bda2cd1cc58da5864f9954b177558e592e1f5 Mon Sep 17 00:00:00 2001 From: 0xmad <0xmad@users.noreply.github.com> Date: Mon, 8 Jan 2024 16:53:42 -0600 Subject: [PATCH] chore(contract): disable empty code blocks warnings --- contracts/contracts/MACI.sol | 1 - contracts/contracts/PollFactory.sol | 1 + contracts/contracts/VkRegistry.sol | 1 + contracts/contracts/gatekeepers/FreeForAllSignUpGatekeeper.sol | 2 ++ 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/contracts/contracts/MACI.sol b/contracts/contracts/MACI.sol index 81254972ee..300f0e08a1 100644 --- a/contracts/contracts/MACI.sol +++ b/contracts/contracts/MACI.sol @@ -9,7 +9,6 @@ import { AccQueue } from "./trees/AccQueue.sol"; import { AccQueueQuinaryBlankSl } from "./trees/AccQueueQuinaryBlankSl.sol"; import { IMACI } from "./interfaces/IMACI.sol"; import { Params } from "./utilities/Params.sol"; -import { DomainObjs } from "./utilities/DomainObjs.sol"; import { TopupCredit } from "./TopupCredit.sol"; import { Utilities } from "./utilities/Utilities.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/contracts/contracts/PollFactory.sol b/contracts/contracts/PollFactory.sol index 353a256a30..abaf244aeb 100644 --- a/contracts/contracts/PollFactory.sol +++ b/contracts/contracts/PollFactory.sol @@ -20,6 +20,7 @@ contract PollFactory is Params, DomainObjs { error InvalidMaxValues(); /// @notice The PollFactory constructor + // solhint-disable-next-line no-empty-blocks constructor() payable {} /// @notice Deploy a new Poll contract and AccQueue contract for messages. diff --git a/contracts/contracts/VkRegistry.sol b/contracts/contracts/VkRegistry.sol index 5b9ff7a9d8..09447a1738 100644 --- a/contracts/contracts/VkRegistry.sol +++ b/contracts/contracts/VkRegistry.sol @@ -31,6 +31,7 @@ contract VkRegistry is Ownable, SnarkCommon { error SubsidyVkNotSet(); /// @notice Create a new instance of the VkRegistry contract + // solhint-disable-next-line no-empty-blocks constructor() payable {} /// @notice Check if the process verifying key is set diff --git a/contracts/contracts/gatekeepers/FreeForAllSignUpGatekeeper.sol b/contracts/contracts/gatekeepers/FreeForAllSignUpGatekeeper.sol index 8b167cc4c3..f3518e67e2 100644 --- a/contracts/contracts/gatekeepers/FreeForAllSignUpGatekeeper.sol +++ b/contracts/contracts/gatekeepers/FreeForAllSignUpGatekeeper.sol @@ -8,10 +8,12 @@ import { SignUpGatekeeper } from "./SignUpGatekeeper.sol"; /// @notice A SignUpGatekeeper which allows anyone to sign up. contract FreeForAllGatekeeper is SignUpGatekeeper { /// @notice Create a new instance of FreeForAllGatekeeper + // solhint-disable-next-line no-empty-blocks constructor() payable {} /// @notice setMaciInstance does nothing in this gatekeeper /// @param _maci The MACI contract + // solhint-disable-next-line no-empty-blocks function setMaciInstance(MACI _maci) public override {} /// @notice Registers the user without any restrictions.