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 {
108
108
/// account.
109
109
///
110
110
/// 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
113
113
ConfigureAccount ,
114
114
115
115
/// 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(
93
93
Ok ( ( ) )
94
94
}
95
95
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.
98
98
fn process_configure_account_from_registry (
99
99
program_id : & Pubkey ,
100
100
accounts : & [ AccountInfo ] ,
@@ -162,8 +162,8 @@ fn process_configure_account(
162
162
}
163
163
164
164
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
167
167
if registry_account. owner != * authority_info. key {
168
168
return Err ( TokenError :: OwnerMismatch . into ( ) ) ;
169
169
}
Original file line number Diff line number Diff line change @@ -711,10 +711,9 @@ pub enum TokenInstruction<'a> {
711
711
/// Initialize an ElGamal public key registry for an account.
712
712
///
713
713
/// 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.
718
717
/// 2. `[]` (Optional) Record account if the accompanying proof is to be
719
718
/// read from a record account.
720
719
CreateElGamalRegistry {
@@ -731,10 +730,9 @@ pub enum TokenInstruction<'a> {
731
730
///
732
731
/// 0. `[writable]` The account to initialize
733
732
/// 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.
738
736
/// 3. `[]` (Optional) Record account if the accompanying proof is to be
739
737
/// read from a record account.
740
738
UpdateElGamalRegistry {
Original file line number Diff line number Diff line change @@ -1544,7 +1544,8 @@ impl Processor {
1544
1544
Ok ( ( ) )
1545
1545
}
1546
1546
1547
- /// Processes an [CreateElGamalRegistry](enum.TokenInstruction.html) instruction
1547
+ /// Processes an [CreateElGamalRegistry](enum.TokenInstruction.html)
1548
+ /// instruction
1548
1549
pub fn process_create_elgamal_registry (
1549
1550
accounts : & [ AccountInfo ] ,
1550
1551
owner : & Pubkey ,
@@ -1568,7 +1569,8 @@ impl Processor {
1568
1569
Ok ( ( ) )
1569
1570
}
1570
1571
1571
- /// Processes an [UpdateElGamalRegistry](enum.TokenInstruction.html) instruction
1572
+ /// Processes an [UpdateElGamalRegistry](enum.TokenInstruction.html)
1573
+ /// instruction
1572
1574
pub fn process_update_elgamal_registry (
1573
1575
program_id : & Pubkey ,
1574
1576
accounts : & [ AccountInfo ] ,
You can’t perform that action at this time.
0 commit comments