docs: Add conclusion to associated accounts

This commit is contained in:
armaniferrante 2021-04-13 22:59:57 -07:00
parent 676379213e
commit 14e9570023
No known key found for this signature in database
GPG Key ID: 58BEF301E91F7828
1 changed files with 6 additions and 0 deletions

View File

@ -94,3 +94,9 @@ We can use them with the example above as follows
<<< @/../examples/tutorial/basic-5/tests/basic-5.js#test
Notice that, in both apis, the "seeds" given match what is expected by the `#[account(associated = <target, with = <target>)]` attribute, where order matters. The `associated` target must come before the `with` target.
## Conclusion
Here, we introduced associated accounts from the perspective of simplifying UX for
a user wallet. However, deterministic addressing can be used beyond this and is a convenient
tool to have in your Solana toolbox. For more, it's recommended to see the Solana [docs](https://docs.solana.com/developing/programming-model/calling-between-programs#program-derived-addresses).