Skip to content

Commit

Permalink
add relevant error output on zk-ops feature
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Aug 11, 2023
1 parent e4e4388 commit f7b6672
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ pub(crate) fn process_instruction(
data.proof_instruction_offset as i64,
)
}
#[cfg(not(feature = "zk-ops"))]
{
Err(ProgramError::InvalidInstructionData)
}
}
ConfidentialTransferFeeInstruction::WithdrawWithheldTokensFromAccounts => {
msg!("ConfidentialTransferFeeInstruction::WithdrawWithheldTokensFromAccounts");
Expand All @@ -496,6 +500,10 @@ pub(crate) fn process_instruction(
data.proof_instruction_offset as i64,
)
}
#[cfg(not(feature = "zk-ops"))]
{
Err(ProgramError::InvalidInstructionData)
}
}
ConfidentialTransferFeeInstruction::HarvestWithheldTokensToMint => {
msg!("ConfidentialTransferFeeInstruction::HarvestWithheldTokensToMint");
Expand Down

0 comments on commit f7b6672

Please sign in to comment.