mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-10 22:58:08 -05:00
31 lines
604 B
Solidity
31 lines
604 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.15;
|
|
|
|
contract ImmutableOwnable {
|
|
address public immutable OWNER;
|
|
address public immutable LENS_HUB;
|
|
|
|
error OnlyOwner();
|
|
error OnlyOwnerOrHub();
|
|
|
|
modifier onlyOwner() {
|
|
if (msg.sender != OWNER) {
|
|
revert OnlyOwner();
|
|
}
|
|
_;
|
|
}
|
|
|
|
modifier onlyOwnerOrHub() {
|
|
if (msg.sender != OWNER && msg.sender != LENS_HUB) {
|
|
revert OnlyOwnerOrHub();
|
|
}
|
|
_;
|
|
}
|
|
|
|
constructor(address owner, address lensHub) {
|
|
OWNER = owner;
|
|
LENS_HUB = lensHub;
|
|
}
|
|
}
|