Skip to content

Commit ad03870

Browse files
committed
feat: implement suggestions
1 parent 06d5441 commit ad03870

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Ownable.sol

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// SPDX-License-Identifier: AGPL-3.0-only
2-
pragma solidity >=0.8.0;
1+
// SPDX-License-Identifier: UNLICENSED
2+
pragma solidity 0.8.20;
33

44
/// @title Ownable
55
/// @author Morpho Labs
@@ -12,7 +12,7 @@ abstract contract Ownable {
1212

1313
/* MODIFIERS */
1414

15-
modifier onlyOwner() virtual {
15+
modifier onlyOwner() {
1616
require(msg.sender == owner, "not owner");
1717
_;
1818
}
@@ -25,7 +25,7 @@ abstract contract Ownable {
2525

2626
/* PUBLIC */
2727

28-
function transferOwnership(address newOwner) public virtual onlyOwner {
28+
function transferOwnership(address newOwner) external onlyOwner {
2929
owner = newOwner;
3030
}
3131
}

0 commit comments

Comments
 (0)