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

Commit 0aea75a

Browse files
v1.17: [zk-token-proof] include VerifyBatchRangeProofU256 in the enable_zk_transfer_with_fee feature gate (backport of #34747) (#34765)
[zk-token-proof] include `VerifyBatchRangeProofU256` in the `enable_zk_transfer_with_fee` feature gate (#34747) include `VerifyBatchRangeProofU256` in the `enable_zk_transfer_with_fee` feature (cherry picked from commit bc13642) Co-authored-by: samkim-crypto <[email protected]>
1 parent 07acb46 commit 0aea75a

File tree

1 file changed

+5
-0
lines changed
  • programs/zk-token-proof/src

1 file changed

+5
-0
lines changed

programs/zk-token-proof/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ declare_process_instruction!(Entrypoint, 0, |invoke_context| {
257257
)
258258
}
259259
ProofInstruction::VerifyBatchedRangeProofU256 => {
260+
// transfer with fee related proofs are not enabled
261+
if !enable_zk_transfer_with_fee {
262+
return Err(InstructionError::InvalidInstructionData);
263+
}
264+
260265
if native_programs_consume_cu {
261266
invoke_context
262267
.consume_checked(VERIFY_BATCHED_RANGE_PROOF_U256_COMPUTE_UNITS)

0 commit comments

Comments
 (0)