@@ -219,7 +219,7 @@ pub enum ConfidentialTransferInstruction {
219
219
/// 6.. `[signer]` Required M signer accounts for the SPL Token Multisig account.
220
220
///
221
221
/// Data expected by this instruction:
222
- /// `TransferWithFeeInstructionData `
222
+ /// `TransferInstructionData `
223
223
///
224
224
TransferWithFee ,
225
225
@@ -418,7 +418,8 @@ pub struct WithdrawInstructionData {
418
418
pub proof_instruction_offset : i8 ,
419
419
}
420
420
421
- /// Data expected by `ConfidentialTransferInstruction::Transfer`
421
+ /// Data expected by `ConfidentialTransferInstruction::Transfer` and
422
+ /// `ConfidentialTransferInstruction::TransferWithFee`
422
423
#[ derive( Clone , Copy , Pod , Zeroable ) ]
423
424
#[ repr( C ) ]
424
425
pub struct TransferInstructionData {
@@ -429,17 +430,6 @@ pub struct TransferInstructionData {
429
430
pub proof_instruction_offset : i8 ,
430
431
}
431
432
432
- /// Data expected by `ConfidentialTransferInstruction::TransferWithFee`
433
- #[ derive( Clone , Copy , Pod , Zeroable ) ]
434
- #[ repr( C ) ]
435
- pub struct TransferWithFeeInstructionData {
436
- /// The new source decryptable balance if the transfer succeeds
437
- pub new_source_decryptable_available_balance : DecryptableBalance ,
438
- /// Relative location of the `ProofInstruction::VerifyTransfer` instruction to the
439
- /// `Transfer` instruction in the transaction
440
- pub proof_instruction_offset : i8 ,
441
- }
442
-
443
433
/// Data expected by `ConfidentialTransferInstruction::ApplyPendingBalance`
444
434
#[ derive( Clone , Copy , Pod , Zeroable ) ]
445
435
#[ repr( C ) ]
@@ -834,7 +824,7 @@ pub fn inner_transfer_with_fee(
834
824
accounts,
835
825
TokenInstruction :: ConfidentialTransferExtension ,
836
826
ConfidentialTransferInstruction :: TransferWithFee ,
837
- & TransferWithFeeInstructionData {
827
+ & TransferInstructionData {
838
828
new_source_decryptable_available_balance,
839
829
proof_instruction_offset,
840
830
} ,
0 commit comments