diff --git a/clients/js/src/generated/instructions/revoke.ts b/clients/js/src/generated/instructions/revoke.ts index 06a3974f..8436c94d 100644 --- a/clients/js/src/generated/instructions/revoke.ts +++ b/clients/js/src/generated/instructions/revoke.ts @@ -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; }; @@ -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; diff --git a/idl.json b/idl.json index 1efdf396..505ea275 100644 --- a/idl.json +++ b/idl.json @@ -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": [ @@ -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" }, { diff --git a/interface/src/instruction.rs b/interface/src/instruction.rs index deab7afe..2e63da79 100644 --- a/interface/src/instruction.rs +++ b/interface/src/instruction.rs @@ -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.