fix: constructor Ownable(msg.sender) for OZ v5

OpenZeppelin v5 requires explicit owner in Ownable constructor. Required
for solc 0.8.31 + OZ v5 build (see partner/contracts foundry.toml).

2 files: IdFactory, ImplementationAuthority.
This commit is contained in:
Hanzo AI
2026-05-04 11:11:36 -07:00
parent e4543ea631
commit 7e37551730
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ contract IdFactory is IIdFactory, Ownable {
// setting
constructor (address implementationAuthority) {
constructor (address implementationAuthority) Ownable(msg.sender) {
require(implementationAuthority != address(0), "invalid argument - zero address");
_implementationAuthority = implementationAuthority;
}
+1 -1
View File
@@ -10,7 +10,7 @@ contract ImplementationAuthority is IImplementationAuthority, Ownable {
// the address of implementation of ONCHAINID
address internal _implementation;
constructor(address implementation) {
constructor(address implementation) Ownable(msg.sender) {
require(implementation != address(0), "invalid argument - zero address");
_implementation = implementation;
emit UpdatedImplementation(implementation);