From 4d87254d2d517f9a1dda174dcaa9f59ac38cdb74 Mon Sep 17 00:00:00 2001 From: Mohanson Date: Fri, 3 Jan 2025 18:47:05 +0800 Subject: [PATCH] Add `writable` permission description for some ubpfl instructions (#4198) Repair permission description --- sdk/program/src/loader_upgradeable_instruction.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/program/src/loader_upgradeable_instruction.rs b/sdk/program/src/loader_upgradeable_instruction.rs index 1d2a9a8f9bfad9..3182f950d241e3 100644 --- a/sdk/program/src/loader_upgradeable_instruction.rs +++ b/sdk/program/src/loader_upgradeable_instruction.rs @@ -65,8 +65,8 @@ pub enum UpgradeableLoaderInstruction { /// account. /// /// # Account references - /// 0. `[signer]` The payer account that will pay to create the ProgramData - /// account. + /// 0. `[writable, signer]` The payer account that will pay to create the + /// ProgramData account. /// 1. `[writable]` The uninitialized ProgramData account. /// 2. `[writable]` The uninitialized Program account. /// 3. `[writable]` The Buffer account where the program data has been @@ -141,8 +141,8 @@ pub enum UpgradeableLoaderInstruction { /// 1. `[writable]` The ProgramData account's associated Program account. /// 2. `[]` System program (`solana_sdk::system_program::id()`), optional, used to transfer /// lamports from the payer to the ProgramData account. - /// 3. `[signer]` The payer account, optional, that will pay necessary rent exemption costs - /// for the increased storage size. + /// 3. `[writable, signer]` The payer account, optional, that will pay + /// necessary rent exemption costs for the increased storage size. ExtendProgram { /// Number of bytes to extend the program data. additional_bytes: u32,