Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: call base contract init function #83

Merged
merged 1 commit into from
Apr 3, 2024
Merged

refactor: call base contract init function #83

merged 1 commit into from
Apr 3, 2024

Conversation

renlulu
Copy link
Contributor

@renlulu renlulu commented Apr 3, 2024

Issue: initialize should call __ServiceManagerBase_init(initialOwner) instead of transferOwnership

ServiceManagerBase exposes an initialization chain. Use the init function to initialize Base for maximum compatibility.

src/ServiceManagerBase.sol (Lines 47-49):

function __ServiceManagerBase_init(address initialOwner) internal virtual onlyInitializing {
    _transferOwnership(initialOwner);
}
function __ServiceManagerBase_init(address initialOwner) internal virtual onlyInitializing {
    _transferOwnership(initialOwner);
}

@github-actions github-actions bot added the XS label Apr 3, 2024
@bb111189 bb111189 merged commit d006675 into m2-dev Apr 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants