Skip to content
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: allow token::... and mint::... to be used as checks without init #1505

Merged
merged 11 commits into from
Apr 11, 2022
Prev Previous commit
Next Next commit
docs
  • Loading branch information
paul-schaaf committed Apr 11, 2022
commit 6d3887f5f6625455a17a752d2a1988bee5d89d61
10 changes: 6 additions & 4 deletions lang/derive/accounts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,9 @@ use syn::parse_macro_input;
/// <code>#[account(token::mint = &lt;target_account&gt;, token::authority = &lt;target_account&gt;)]</code>
/// </td>
/// <td>
/// Can currently only be used with <code>init</code> to create a token
/// account with the given mint address and authority.
/// Can be used as a check or with <code>init</code> to create a token
/// account with the given mint address and authority.<br>
/// When used as a check, it's possible to only specify a subset of the constraints.
/// <br><br>
/// Example:
/// <pre>
Expand Down Expand Up @@ -466,9 +467,10 @@ use syn::parse_macro_input;
/// <code>#[account(mint::authority = &lt;target_account&gt;, mint::decimals = &lt;expr&gt;, mint::freeze_authority = &lt;target_account&gt;)]</code>
/// </td>
/// <td>
/// Can currently only be used with <code>init</code> to create a mint
/// Can be used as a check or with <code>init</code> to create a mint
/// account with the given mint decimals and mint authority.<br>
/// The freeze authority is optional.
/// The freeze authority is optional when used with <code>init</code>.<br>
/// When used as a check, it's possible to only specify a subset of the constraints.
/// <br><br>
/// Example:
/// <pre>
Expand Down