Skip to content

Commit

Permalink
chore(contract): disable empty code blocks warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmad committed Jan 8, 2024
1 parent 18da49c commit f30bda2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion contracts/contracts/MACI.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions contracts/contracts/PollFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions contracts/contracts/VkRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f30bda2

Please sign in to comment.