[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
This commit is contained in:
samkim-crypto 2024-01-12 21:58:33 +09:00 committed by GitHub
parent 4385ed11b1
commit bc136423b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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)