contracts-imtbl/contracts/core/Governable.sol
2024-08-23 17:06:50 +08:00

20 lines
312 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 onlyGov {
gov = _gov;
}
}