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

Commit 2844a1f

Browse files
committed
remove dependency on record program
1 parent cd89357 commit 2844a1f

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

Cargo.lock

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

token/program-2022/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ solana-program = "2.0.3"
2626
solana-security-txt = "1.1.1"
2727
solana-zk-token-sdk = "2.0.3"
2828
spl-memo = { version = "5.0", path = "../../memo/program", features = [ "no-entrypoint" ] }
29-
spl-record = { version = "0.2.0", path = "../../record/program", features = [ "no-entrypoint" ]}
3029
spl-token = { version = "6.0", path = "../program", features = ["no-entrypoint"] }
3130
spl-token-group-interface = { version = "0.3.0", path = "../../token-group/interface" }
3231
spl-token-metadata-interface = { version = "0.4.0", path = "../../token-metadata/interface" }

token/program-2022/src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,6 @@ pub fn check_zk_token_proof_program_account(zk_token_proof_program_id: &Pubkey)
121121
Ok(())
122122
}
123123

124-
/// Checks that the supplied program ID is correct for the spl record program
125-
pub fn check_spl_record_program_account(spl_record_program_id: &Pubkey) -> ProgramResult {
126-
if spl_record_program_id != &spl_record::id() {
127-
return Err(ProgramError::IncorrectProgramId);
128-
}
129-
Ok(())
130-
}
131-
132124
/// Checks if the spplied program ID is that of the system program
133125
pub fn check_system_program_account(system_program_id: &Pubkey) -> ProgramResult {
134126
if system_program_id != &system_program::id() {

token/program-2022/src/proof.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Helper for processing instruction data from ZK Token proof program
22
33
use {
4-
crate::check_spl_record_program_account,
54
bytemuck::Pod,
65
solana_program::{
76
account_info::{next_account_info, AccountInfo},
@@ -40,7 +39,6 @@ pub fn decode_proof_instruction_context<T: Pod + ZkProofData<U>, U: Pod>(
4039
// the ZK ElGamal proof program.
4140
if instruction.data.len() == INSTRUCTION_DATA_LENGTH_WITH_RECORD_ACCOUNT {
4241
let record_account = next_account_info(account_info_iter)?;
43-
check_spl_record_program_account(record_account.owner)?;
4442

4543
// first byte is the proof type
4644
let start_offset = u32::from_le_bytes(instruction.data[1..].try_into().unwrap()) as usize;

0 commit comments

Comments
 (0)