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_tokenkeyword to create associated token accounts from within a derive macro. For example,