我想从Ownable覆盖 transferOwnership但是,内部函数 _transferOwnership 未被识别。我要么必须有办法调用它,要么直接更改 _transferOwnership。
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}