Skip to content

Commit

Permalink
remove solana-sdk from zk-token-proof-tests (#4056)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Dec 11, 2024
1 parent 5627bbb commit 150daa1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
10 changes: 9 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion programs/zk-token-proof-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ edition = { workspace = true }
[dev-dependencies]
bytemuck = { workspace = true }
curve25519-dalek = { workspace = true }
solana-account = { workspace = true }
solana-compute-budget = { workspace = true }
solana-compute-budget-interface = { workspace = true }
solana-instruction = { workspace = true }
solana-keypair = { workspace = true }
solana-program-test = { workspace = true }
solana-sdk = { workspace = true }
solana-pubkey = { workspace = true }
solana-signer = { workspace = true }
solana-system-interface = { workspace = true }
solana-transaction = { workspace = true }
solana-transaction-error = { workspace = true }
solana-zk-token-sdk = { workspace = true }
21 changes: 10 additions & 11 deletions programs/zk-token-proof-tests/tests/process_transaction.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
use {
bytemuck::{bytes_of, Pod},
curve25519_dalek::scalar::Scalar,
solana_account::Account,
solana_instruction::error::InstructionError,
solana_keypair::Keypair,
solana_program_test::*,
solana_sdk::{
account::Account,
instruction::InstructionError,
pubkey::Pubkey,
signature::Signer,
signer::keypair::Keypair,
system_instruction,
transaction::{Transaction, TransactionError},
},
solana_pubkey::Pubkey,
solana_signer::Signer,
solana_system_interface::instruction as system_instruction,
solana_transaction::Transaction,
solana_transaction_error::TransactionError,
solana_zk_token_sdk::{
encryption::{
elgamal::{ElGamalKeypair, ElGamalSecretKey},
Expand Down Expand Up @@ -1713,10 +1712,10 @@ trait WithMaxComputeUnitLimit {
fn with_max_compute_unit_limit(self) -> Self;
}

impl WithMaxComputeUnitLimit for Vec<solana_sdk::instruction::Instruction> {
impl WithMaxComputeUnitLimit for Vec<solana_instruction::Instruction> {
fn with_max_compute_unit_limit(mut self) -> Self {
self.push(
solana_sdk::compute_budget::ComputeBudgetInstruction::set_compute_unit_limit(
solana_compute_budget_interface::ComputeBudgetInstruction::set_compute_unit_limit(
solana_compute_budget::compute_budget_limits::MAX_COMPUTE_UNIT_LIMIT,
),
);
Expand Down

0 comments on commit 150daa1

Please sign in to comment.