From 76eff14d6828cb6754dfa85ae48f22b265beb99f Mon Sep 17 00:00:00 2001 From: picodes Date: Mon, 13 May 2024 20:06:06 +0200 Subject: [PATCH] fix: change access --- contracts/Distributor.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/Distributor.sol b/contracts/Distributor.sol index 454b67b..6c813cd 100644 --- a/contracts/Distributor.sol +++ b/contracts/Distributor.sol @@ -248,7 +248,7 @@ contract Distributor is UUPSHelper { /// @notice Resolve the ongoing dispute, if any /// @param valid Whether the dispute was valid - function resolveDispute(bool valid) external onlyGovernorOrGuardian { + function resolveDispute(bool valid) external onlyGovernor { if (disputer == address(0)) revert NoDispute(); if (valid) { IERC20(disputeToken).safeTransfer(disputer, disputeAmount); @@ -264,7 +264,7 @@ contract Distributor is UUPSHelper { /// @notice Allows the governor or the guardian of this contract to fallback to the last version of the tree /// immediately - function revokeTree() external onlyGovernorOrGuardian { + function revokeTree() external onlyGovernor { if (disputer != address(0)) revert UnresolvedDispute(); _revokeTree(); }