Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit e99e313

Browse files
authored
Revert "[token-2022] Add support for reading proofs from record accou… (#7084)
Revert "[token-2022] Add support for reading proofs from record accounts (#7055)" This reverts commit 8e09659.
1 parent f5997d6 commit e99e313

File tree

14 files changed

+146
-1032
lines changed

14 files changed

+146
-1032
lines changed

Cargo.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

token/cli/src/command.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ use {
6969
},
7070
spl_token_client::{
7171
client::{ProgramRpcClientSendTransaction, RpcClientResponse},
72-
proof_generation::ProofAccount,
7372
token::{ComputeUnitLimit, ExtensionInitializationParams, Token},
7473
},
7574
spl_token_group_interface::state::TokenGroup,
@@ -3349,7 +3348,7 @@ async fn command_deposit_withdraw_confidential_tokens(
33493348
.confidential_transfer_withdraw(
33503349
&token_account_address,
33513350
&owner,
3352-
Some(&ProofAccount::ContextAccount(context_state_pubkey)),
3351+
Some(&context_state_pubkey),
33533352
amount,
33543353
decimals,
33553354
Some(withdraw_account_info),

token/client/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ version = "0.11.0"
99

1010
[dependencies]
1111
async-trait = "0.1"
12-
bincode = "1.3.2"
13-
bytemuck = "1.16.3"
1412
curve25519-dalek = "3.2.1"
1513
futures = "0.3.30"
1614
futures-util = "0.3"
@@ -28,7 +26,6 @@ spl-associated-token-account = { version = "4.0.0", path = "../../associated-tok
2826
spl-memo = { version = "5.0", path = "../../memo/program", features = [
2927
"no-entrypoint",
3028
] }
31-
spl-record = { version = "0.2.0", path = "../../record/program", features = ["no-entrypoint"] }
3229
spl-token = { version = "6.0", path = "../program", features = [
3330
"no-entrypoint",
3431
] }

token/client/src/proof_generation.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
use {
88
curve25519_dalek::scalar::Scalar,
9-
solana_sdk::pubkey::Pubkey,
109
spl_token_2022::{
1110
error::TokenError,
1211
extension::confidential_transfer::{
@@ -33,11 +32,6 @@ use {
3332
},
3433
};
3534

36-
pub enum ProofAccount {
37-
ContextAccount(Pubkey),
38-
RecordAccount(Pubkey, u32),
39-
}
40-
4135
/// The main logic to create the five split proof data for a transfer with fee.
4236
#[allow(clippy::too_many_arguments)]
4337
pub fn transfer_with_fee_split_proof_data(

0 commit comments

Comments
 (0)