Skip to content

Commit 1ae42e7

Browse files
authored
lang: Mention init constraint requires annotated account to sign (otter-sec#3246)
1 parent 19b9306 commit 1ae42e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lang/derive/accounts/src

lang/derive/accounts/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ use syn::parse_macro_input;
9494
/// </td>
9595
/// <td>
9696
/// Creates the account via a CPI to the system program and
97-
/// initializes it (sets its account discriminator).<br>
97+
/// initializes it (sets its account discriminator). The annotated account is required to sign for this instruction
98+
/// unless `seeds` is provided. <br>
9899
/// Marks the account as mutable and is mutually exclusive with <code>mut</code>.<br>
99100
/// Makes the account rent exempt unless skipped with <code>rent_exempt = skip</code>.<br><br>
100101
/// Use <code>#[account(zero)]</code> for accounts larger than 10 Kibibyte.<br><br>

0 commit comments

Comments
 (0)