Zk instructions check length (#24103)

* zk-token-sdk: add a length check before decoding proof instruction

* zk-token-sdk: fix minor spelling

* zk-token-sdk: one-liner for length check

* zk-token-sdk: one-liner fix
This commit is contained in:
samkim-crypto
2022-04-05 09:40:45 -03:00
committed by GitHub
parent 2b718d00b0
commit ba92ba0e06
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ pub fn process_instruction(
verify::<WithdrawData>(invoke_context)
}
ProofInstruction::VerifyWithdrawWithheldTokens => {
ic_msg!(invoke_context, "VerifyWithdraw");
ic_msg!(invoke_context, "VerifyWithdrawWithheldTokens");
verify::<WithdrawData>(invoke_context)
}
ProofInstruction::VerifyTransfer => {