mirror of
https://github.com/luxfi/onchain-id.git
synced 2026-07-27 04:11:30 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user