This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
extension/confidential_transfer Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ pub enum ConfidentialTransferInstruction {
108108 /// account.
109109 ///
110110 /// Data expected by this instruction:
111- /// None if an `ElGamalRegistry` address is provided in the list of accounts
112- /// `ConfigureAccountInstructionData` otherwise
111+ /// None if an `ElGamalRegistry` address is provided in the list of
112+ /// accounts `ConfigureAccountInstructionData` otherwise
113113 ConfigureAccount ,
114114
115115 /// Approves a token account for confidential transfers.
Original file line number Diff line number Diff line change @@ -93,8 +93,8 @@ fn process_update_mint(
9393 Ok ( ( ) )
9494}
9595
96- /// Processes a [ConfigureAccount] instruction with the assumption that an ElGamal registry is
97- /// provided.
96+ /// Processes a [ConfigureAccount] instruction with the assumption that an
97+ /// ElGamal registry is provided.
9898fn process_configure_account_from_registry (
9999 program_id : & Pubkey ,
100100 accounts : & [ AccountInfo ] ,
@@ -162,8 +162,8 @@ fn process_configure_account(
162162 }
163163
164164 if let Some ( registry_account) = elgamal_registry_account {
165- // if ElGamal registry was provided, then just verify that the registry owner and the
166- // account match, then skip the signature verification check
165+ // if ElGamal registry was provided, then just verify that the registry owner
166+ // and the account match, then skip the signature verification check
167167 if registry_account. owner != * authority_info. key {
168168 return Err ( TokenError :: OwnerMismatch . into ( ) ) ;
169169 }
Original file line number Diff line number Diff line change @@ -711,10 +711,9 @@ pub enum TokenInstruction<'a> {
711711 /// Initialize an ElGamal public key registry for an account.
712712 ///
713713 /// 0. `[writable]` The account to initialize
714- /// 1. `[]` Instructions sysvar if `VerifyPubkeyValidity` is included in
715- /// the same transaction or context state account if
716- /// `VerifyPubkeyValidity` is pre-verified into a context state
717- /// account.
714+ /// 1. `[]` Instructions sysvar if `VerifyPubkeyValidity` is included in the
715+ /// same transaction or context state account if `VerifyPubkeyValidity`
716+ /// is pre-verified into a context state account.
718717 /// 2. `[]` (Optional) Record account if the accompanying proof is to be
719718 /// read from a record account.
720719 CreateElGamalRegistry {
@@ -731,10 +730,9 @@ pub enum TokenInstruction<'a> {
731730 ///
732731 /// 0. `[writable]` The account to initialize
733732 /// 1. `[signer]` The owner of the ElGamal public key registry
734- /// 2. `[]` Instructions sysvar if `VerifyPubkeyValidity` is included in
735- /// the same transaction or context state account if
736- /// `VerifyPubkeyValidity` is pre-verified into a context state
737- /// account.
733+ /// 2. `[]` Instructions sysvar if `VerifyPubkeyValidity` is included in the
734+ /// same transaction or context state account if `VerifyPubkeyValidity`
735+ /// is pre-verified into a context state account.
738736 /// 3. `[]` (Optional) Record account if the accompanying proof is to be
739737 /// read from a record account.
740738 UpdateElGamalRegistry {
Original file line number Diff line number Diff line change @@ -1544,7 +1544,8 @@ impl Processor {
15441544 Ok ( ( ) )
15451545 }
15461546
1547- /// Processes an [CreateElGamalRegistry](enum.TokenInstruction.html) instruction
1547+ /// Processes an [CreateElGamalRegistry](enum.TokenInstruction.html)
1548+ /// instruction
15481549 pub fn process_create_elgamal_registry (
15491550 accounts : & [ AccountInfo ] ,
15501551 owner : & Pubkey ,
@@ -1568,7 +1569,8 @@ impl Processor {
15681569 Ok ( ( ) )
15691570 }
15701571
1571- /// Processes an [UpdateElGamalRegistry](enum.TokenInstruction.html) instruction
1572+ /// Processes an [UpdateElGamalRegistry](enum.TokenInstruction.html)
1573+ /// instruction
15721574 pub fn process_update_elgamal_registry (
15731575 program_id : & Pubkey ,
15741576 accounts : & [ AccountInfo ] ,
You can’t perform that action at this time.
0 commit comments