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

fix: change ownable to SDK implementation #32

Closed
wants to merge 2 commits into from

Conversation

deanamiel
Copy link
Contributor

PR to switch Ownable to the SDK implementation.

transferOwnership(_owner);
assembly {
sstore(_OWNER_SLOT, _owner)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if I should emit an OwnershipTransferred event here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, i think it's a good idea to emit event here since the ownership address is important enough to make it clear and transparent.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd prefer creating an internal _transferOwnership method in Ownable to encapsulate this from inheriting contracts

@milapsheth milapsheth closed this Aug 22, 2023
@milapsheth milapsheth deleted the fix/ownable-implementation branch August 22, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants