20 lines
312 B
Solidity
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;
|
|
}
|
|
}
|