From d45f9ed40808d81aa84ecb8b5e6293a30b968789 Mon Sep 17 00:00:00 2001 From: Vladimir Guguiev Date: Sun, 19 Sep 2021 22:24:10 +0200 Subject: [PATCH] lang: Add docs for `#[account(address = )]` (#765) --- lang/derive/accounts/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/derive/accounts/src/lib.rs b/lang/derive/accounts/src/lib.rs index 1cfe636b7..8a0978e7b 100644 --- a/lang/derive/accounts/src/lib.rs +++ b/lang/derive/accounts/src/lib.rs @@ -50,6 +50,7 @@ use syn::parse_macro_input; /// | `#[account(executable)]` | On `AccountInfo` structs | Checks the given account is an executable program. | /// | `#[account(state = )]` | On `CpiState` structs | Checks the given state is the canonical state account for the target program. | /// | `#[account(owner = )]` | On `CpiState`, `CpiAccount`, and `AccountInfo` | Checks the account owner matches the target. | +/// | `#[account(address = )]` | On `AccountInfo` and `Account` | Checks the account key matches the pubkey. | // TODO: How do we make the markdown render correctly without putting everything // on absurdly long lines? #[proc_macro_derive(Accounts, attributes(account, instruction))]