Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit dc56844

Browse files
authored
Governance: fix instruction accounts comments (#3144)
1 parent 9e02934 commit dc56844

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

governance/program/src/instruction.rs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -285,16 +285,16 @@ pub enum GovernanceInstruction {
285285
/// 0. `[writable]` Realm account
286286
/// 1. `[writable]` Governance account
287287
/// 2. `[writable]` Proposal account
288-
/// 4. `[writable]` TokenOwnerRecord of the Proposal owner
289-
/// 3. `[writable]` TokenOwnerRecord of the voter. PDA seeds: ['governance',realm, governing_token_mint, governing_token_owner]
290-
/// 4. `[signer]` Governance Authority (Token Owner or Governance Delegate)
291-
/// 5. `[writable]` Proposal VoteRecord account. PDA seeds: ['governance',proposal,governing_token_owner_record]
292-
/// 6. `[]` Governing Token Mint
293-
/// 7. `[signer]` Payer
294-
/// 8. `[]` System program
295-
/// 9. `[]` Realm Config
296-
/// 10. `[]` Optional Voter Weight Record
297-
/// 11. `[]` Optional Max Voter Weight Record
288+
/// 3. `[writable]` TokenOwnerRecord of the Proposal owner
289+
/// 4. `[writable]` TokenOwnerRecord of the voter. PDA seeds: ['governance',realm, governing_token_mint, governing_token_owner]
290+
/// 5. `[signer]` Governance Authority (Token Owner or Governance Delegate)
291+
/// 6. `[writable]` Proposal VoteRecord account. PDA seeds: ['governance',proposal,governing_token_owner_record]
292+
/// 7. `[]` Governing Token Mint
293+
/// 8. `[signer]` Payer
294+
/// 9. `[]` System program
295+
/// 10. `[]` Realm Config
296+
/// 11. `[]` Optional Voter Weight Record
297+
/// 12. `[]` Optional Max Voter Weight Record
298298
CastVote {
299299
#[allow(dead_code)]
300300
/// User's vote
@@ -333,9 +333,10 @@ pub enum GovernanceInstruction {
333333
/// The actual transaction being executed will be signed by Governance PDA the Proposal belongs to
334334
/// For example to execute Program upgrade the ProgramGovernance PDA would be used as the singer
335335
///
336-
/// 0. `[writable]` Proposal account
337-
/// 1. `[writable]` ProposalTransaction account you wish to execute
338-
/// 2+ Any extra accounts that are part of the transaction, in order
336+
/// 0. `[]` Governance account
337+
/// 1. `[writable]` Proposal account
338+
/// 2. `[writable]` ProposalTransaction account you wish to execute
339+
/// 3+ Any extra accounts that are part of the transaction, in order
339340
ExecuteTransaction,
340341

341342
/// Creates Mint Governance account which governs a mint

0 commit comments

Comments
 (0)