Skip to content
This repository was archived by the owner on Jan 10, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions contracts/registries/YRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,13 @@ contract YRegistry {
pendingGovernance = _pendingGovernance;
}

function acceptGovernance() external onlyPendingGovernance {
governance = msg.sender;
function acceptGovernance() external {
require(msg.sender == pendingGovernance, "Only pendingGovernance can call this function.");
governance = pendingGovernance;
}

modifier onlyGovernance {
require(msg.sender == governance, "Only governance can call this function.");
_;
}
modifier onlyPendingGovernance {
require(msg.sender == pendingGovernance, "Only pendingGovernance can call this function.");
_;
}
}