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

Remove optional owner #21

Open
wants to merge 4 commits into
base: neotamandua/review_poc
Choose a base branch
from

Conversation

herr-seppia
Copy link
Member

No description provided.

@@ -168,8 +156,6 @@ impl TokenState {
),
}

self.owner = None;
Copy link
Member

Choose a reason for hiding this comment

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

From what I see, this function does not renounce the owner anymore. We can also set it to "Account::Contract(ContractId::from_bytes([0; CONTRACT_ID_BYTES]))," here, or?

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed I'm not sure we should have that function at all, but maybe I'm missing something
What happens when there is no owner anymore?

Copy link
Member

Choose a reason for hiding this comment

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

Indeed I'm not sure we should have that function at all, but maybe I'm missing something What happens when there is no owner anymore?

Then there is no owner and no one can be an owner. This is only useful in certain cases (where only a temporary owner is needed) and not everyone has a use for this feature.

I added this feature to be more in line with the Ownable contract interface on ETH. We can always remove it in the future, but the current implementation here does not work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Gotcha, then I'll reset the owner to default value as you suggested

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.

2 participants