Make Ownable2Step.acceptOwnership virtual (#3960)

This commit is contained in:
Hadrien Croubois
2023-01-18 03:57:14 +01:00
committed by GitHub
parent 88a64a802e
commit c9bc4f8203
2 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ abstract contract Ownable2Step is Ownable {
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() external {
function acceptOwnership() public virtual {
address sender = _msgSender();
require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
_transferOwnership(sender);