-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add a function to the token contract to get the admin #541
Comments
Is admin the same as owner in this context? |
It is. It is essentially the same concept as an "issuer" on Stellar today, although it can be more than a Stellar account as it can also be another contract or an ed25519 key independent of any account. |
I overlooked one aspect that does make this a little less trivial to implement: the Native token contract deployment has no admin. The function probably shouldn't 💥 when called on the native contract. |
The (I had a specific use, but that use has evaporated for unrelated reasons.) |
Duplicate of #635 |
I propose we add a function to the token contract that returns the admin.
There's no way from outside the token contract to introspect who the admin is. This seems like trivial thing to add. The contract already exposes other details about itself.
The use case is for contracts who wish to check if a participant in their invocations has any special capabilities for the token contract.
Another use case is for general ability for dapps and other tools to ask a contract who its admin is, without having to introspect actual contract data which we decided early on to avoid doing and to learn into providing read functions.
The text was updated successfully, but these errors were encountered: