We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06d5441 commit ad03870Copy full SHA for ad03870
src/Ownable.sol
@@ -1,5 +1,5 @@
1
-// SPDX-License-Identifier: AGPL-3.0-only
2
-pragma solidity >=0.8.0;
+// SPDX-License-Identifier: UNLICENSED
+pragma solidity 0.8.20;
3
4
/// @title Ownable
5
/// @author Morpho Labs
@@ -12,7 +12,7 @@ abstract contract Ownable {
12
13
/* MODIFIERS */
14
15
- modifier onlyOwner() virtual {
+ modifier onlyOwner() {
16
require(msg.sender == owner, "not owner");
17
_;
18
}
@@ -25,7 +25,7 @@ abstract contract Ownable {
25
26
/* PUBLIC */
27
28
- function transferOwnership(address newOwner) public virtual onlyOwner {
+ function transferOwnership(address newOwner) external onlyOwner {
29
owner = newOwner;
30
31
0 commit comments