-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: 'owner' should be 'AccountOwner' in associated-token-account.md #6126
Conversation
The old wording seemed incorrect. Solana uses the term 'owner' to mean program owner. I believe this sentence is saying the authority on the new ATA will be the associated wallet, can someone confirm that's correct?
So, technically the field that represents the controlling authority of a Token Account is called
However, the solana-program-library/token/program/src/processor.rs Lines 441 to 462 in 23916b2
As you can see in that snippet, it will update So, although I think it's a bit confusing, Maybe we can reword this a bit and say: Regardless of the creator, the new associated token account's
[`owner`](https://github.com/solana-labs/solana-program-library/blob/23916b24700cd222ad2397e9de8162ad6980e2e8/token/program/src/state.rs#L92-L93)
field will be the wallet, thus it will be controlled by the wallet, as
if the wallet itself had created the associated token account. micro-nit: can you make sure to wrap the columns at 80? |
Got it! Your suggestion is definitely clearer. It sounds like the real issue is the code itself has two things called owner - account owner and program owner. It might be even better to switch to more distinct terms (rather than reuse 'owner') in order to avoid confusion. I know that sounds like significant change but if there's going to be ten times as many Solana developers in the future, it may be a good one to make sooner rather than later.
Sure! Existing code is a mix of hard and soft wrapped and I didn't want to reformat unrelated code. |
Agreed, and to make matters worse we also call it |
The old wording seemed incorrect. Solana uses the term 'owner' to mean program owner. I believe this sentence is saying the AccountOwner on the new ATA will be the associated wallet, can someone confirm that's correct?