Add PubkeyError for ProgramError (#10748)
This commit is contained in:
@ -10,7 +10,7 @@ use solana_sdk::{
|
||||
entrypoint::ProgramResult,
|
||||
info,
|
||||
program_error::{PrintProgramError, ProgramError},
|
||||
pubkey::Pubkey,
|
||||
pubkey::{Pubkey, PubkeyError},
|
||||
};
|
||||
use thiserror::Error;
|
||||
|
||||
@ -73,6 +73,10 @@ fn process_instruction(
|
||||
assert_eq!(*data, *data2);
|
||||
Ok(())
|
||||
}
|
||||
9 => {
|
||||
info!("return pubkey error");
|
||||
Err(PubkeyError::MaxSeedLengthExceeded.into())
|
||||
}
|
||||
_ => {
|
||||
info!("Unsupported");
|
||||
Err(ProgramError::InvalidInstructionData)
|
||||
|
Reference in New Issue
Block a user