contracts-imtbl/contracts/core/Governable.sol
2024-09-07 22:24:03 +08:00

20 lines
320 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
contract Governable {
address public gov;
constructor() {
gov = msg.sender;
}
modifier onlyGov() {
require(msg.sender == gov, "Governable: forbidden");
_;
}
function setGov(address _gov) external virtual onlyGov {
gov = _gov;
}
}