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

How to set msg.sender as the owner rather than factory #2

Open
manangouhari opened this issue Jan 26, 2022 · 1 comment
Open

How to set msg.sender as the owner rather than factory #2

manangouhari opened this issue Jan 26, 2022 · 1 comment

Comments

@manangouhari
Copy link
Collaborator

You should be good to go if you do, transferOwnership(_owner) in the token's constructor.

Then, you should be also able to use the built-in onlyOwner rather than your own modifier.

Haven't tried it out, but this should work.

@anoushk1234
Copy link
Collaborator

works thanks

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

No branches or pull requests

2 participants