Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/js/src/generated/instructions/revoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export type RevokeInput<
> = {
/** The source account. */
source: TAccountSource;
/** The source account owner or its multisignature. */
/** The source account owner or delegate, or its multisignature. */
owner: TAccountOwner;
multiSigners?: Array<InstructionSignerInput>;
};
Expand Down Expand Up @@ -162,7 +162,7 @@ export type ParsedRevokeInstruction<
accounts: {
/** The source account. */
source: TAccountMetas[0];
/** The source account owner or its multisignature. */
/** The source account owner or delegate, or its multisignature. */
owner: TAccountMetas[1];
};
data: RevokeInstructionData;
Expand Down
7 changes: 5 additions & 2 deletions idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@
"isWritable": false,
"isSigner": "either",
"isOptional": false,
"docs": ["The source account owner or its multisignature."]
"docs": ["The source account owner or delegate, or its multisignature."]
}
],
"arguments": [
Expand Down Expand Up @@ -832,7 +832,10 @@
}
],
"name": "revoke",
"docs": ["Revokes the delegate's authority."],
"docs": [
"Revokes the delegate's authority.",
"A delegate can revoke its own delegation."
],
"optionalAccountStrategy": "programId"
},
{
Expand Down
10 changes: 6 additions & 4 deletions interface/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,17 @@ pub enum TokenInstruction<'a> {
},
/// Revokes the delegate's authority.
///
/// Note that a delegate can revoke its own delegation.
///
/// Accounts expected by this instruction:
///
/// * Single owner
/// * Single owner/delegate
/// 0. `[writable]` The source account.
/// 1. `[signer]` The source account owner.
/// 1. `[signer]` The source account's owner/delegate.
///
/// * Multisignature owner
/// * Multisignature owner/delegate
/// 0. `[writable]` The source account.
/// 1. `[]` The source account's multisignature owner.
/// 1. `[]` The source account's multisignature owner/delegate.
/// 2. ..`2+M` `[signer]` M signer accounts
Revoke,
/// Sets a new authority of a mint or account.
Expand Down