-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lang, spl, cli: Add associated_token keyword #790
Conversation
Hello, this is something made to prevent having to create them in the front end? Similar to the init of state accounts done program side? Is so, the owner is always the program? |
Correct. |
Getting some errors that I'm not sure how to debug for
user is signer/mut, accounts are Boxed, mint is mut and initialized, of type Mint 🤔
|
Btw on your example above @armaniferrante |
Ok the issue was my local anchor-cli version that did not match. Thanks to @cqfd |
Payer should be marked mut. It coincidentally work if it's not mutable if another account, e.g. the tx fee payer, is already marked mutable. |
Ok thanks for the clarification.
…On Sun, 10 Oct 2021 at 1:36 AM, Armani Ferrante ***@***.***> wrote:
Btw on your example above @armaniferrante
<https://github.com/armaniferrante> payer is not marked as mut, that
wouldn't work right?
Payer should be marked mut. It coincidentally work if it's not mutable
*if* another account, e.g. the tx fee payer, is already marked mutable.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#790 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJTOZY7G23BBCHY2DCSYBM3UGB4PTANCNFSM5EUXFHFQ>
.
|
Adds a new
associated_token
keyword to create associated token accounts from within a derive macro. For example,