Make Ownable's initial owner explicit (#4267)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
This commit is contained in:
Hadrien Croubois
2023-05-23 23:26:43 +02:00
committed by GitHub
parent 11d65442b3
commit 13d5e0466a
10 changed files with 29 additions and 20 deletions

View File

@ -25,8 +25,8 @@ abstract contract Ownable is Context {
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
constructor(address initialOwner) {
_transferOwnership(initialOwner);
}
/**