Remove failure's use of GenericError (#8287)

automerge
This commit is contained in:
Jack May 2020-02-14 14:07:53 -08:00 committed by GitHub
parent 4593d333c7
commit 965361ff69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,5 +13,5 @@ fn process_instruction(
_keyed_accounts: &[KeyedAccount], _keyed_accounts: &[KeyedAccount],
_data: &[u8], _data: &[u8],
) -> Result<(), InstructionError> { ) -> Result<(), InstructionError> {
Err(InstructionError::GenericError) Err(InstructionError::CustomError(0))
} }

View File

@ -23,6 +23,6 @@ fn test_program_native_failure() {
.send_instruction(&alice_keypair, instruction) .send_instruction(&alice_keypair, instruction)
.unwrap_err() .unwrap_err()
.unwrap(), .unwrap(),
TransactionError::InstructionError(0, InstructionError::GenericError) TransactionError::InstructionError(0, InstructionError::CustomError(0))
); );
} }