Add PubkeyError for ProgramError (#10748)

This commit is contained in:
Jack May
2020-06-23 11:19:27 -07:00
committed by GitHub
parent 685becad13
commit db4a18ada4
7 changed files with 41 additions and 4 deletions

View File

@ -301,6 +301,14 @@ mod bpf {
result.unwrap_err().unwrap(),
TransactionError::InstructionError(0, InstructionError::InvalidInstructionData)
);
let instruction = Instruction::new(program_id, &9u8, account_metas.clone());
let result = bank_client.send_instruction(&mint_keypair, instruction);
assert_eq!(
result.unwrap_err().unwrap(),
TransactionError::InstructionError(0, InstructionError::MaxSeedLengthExceeded)
);
}
}