Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

[zk-token-proof] include VerifyBatchRangeProofU256 in the enable_zk_transfer_with_fee feature gate #34747

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions programs/zk-token-proof/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ declare_process_instruction!(Entrypoint, 0, |invoke_context| {
)
}
ProofInstruction::VerifyBatchedRangeProofU256 => {
// transfer with fee related proofs are not enabled
if !enable_zk_transfer_with_fee {
return Err(InstructionError::InvalidInstructionData);
}

if native_programs_consume_cu {
invoke_context
.consume_checked(VERIFY_BATCHED_RANGE_PROOF_U256_COMPUTE_UNITS)
Expand Down