Merge branch 'master' into audit/wip/2a-2b

This commit is contained in:
Hadrien Croubois
2023-09-13 11:14:09 +02:00
72 changed files with 1159 additions and 1430 deletions

View File

@ -36,6 +36,9 @@ abstract contract Ownable is Context {
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}