Skip to content

Commit

Permalink
♻️ Make Owned.sol EIP-713 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Oct 12, 2022
1 parent 62e0943 commit 576a89d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/auth/Owned.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ abstract contract Owned {
EVENTS
//////////////////////////////////////////////////////////////*/

event OwnerUpdated(address indexed user, address indexed newOwner);
event OwnershipTransferred(address indexed user, address indexed newOwner);

/*//////////////////////////////////////////////////////////////
OWNERSHIP STORAGE
Expand All @@ -29,16 +29,16 @@ abstract contract Owned {
constructor(address _owner) {
owner = _owner;

emit OwnerUpdated(address(0), _owner);
emit OwnershipTransferred(address(0), _owner);
}

/*//////////////////////////////////////////////////////////////
OWNERSHIP LOGIC
//////////////////////////////////////////////////////////////*/

function setOwner(address newOwner) public virtual onlyOwner {
function transferOwnership(address newOwner) public virtual onlyOwner {
owner = newOwner;

emit OwnerUpdated(msg.sender, newOwner);
emit OwnershipTransferred(msg.sender, newOwner);
}
}

0 comments on commit 576a89d

Please sign in to comment.