Rename BankError to TransactionError

This commit is contained in:
Greg Fitzgerald
2019-03-13 13:58:44 -06:00
parent 150cd31ec0
commit 4ca4038d54
13 changed files with 100 additions and 90 deletions

View File

@ -1,5 +1,5 @@
use solana_runtime::bank::Bank;
use solana_runtime::bank::BankError;
use solana_runtime::bank::TransactionError;
use solana_runtime::loader_utils::load_program;
use solana_runtime::runtime::InstructionError;
use solana_sdk::genesis_block::GenesisBlock;
@ -26,7 +26,7 @@ fn test_program_native_failure() {
);
assert_eq!(
bank.process_transaction(&tx),
Err(BankError::InstructionError(
Err(TransactionError::InstructionError(
0,
InstructionError::ProgramError(ProgramError::GenericError)
))

View File

@ -1,4 +1,4 @@
use solana_runtime::bank::BankError;
use solana_runtime::bank::TransactionError;
use solana_runtime::bank::{Bank, Result};
use solana_runtime::runtime::InstructionError;
use solana_sdk::genesis_block::GenesisBlock;
@ -135,7 +135,7 @@ fn test_vote_via_bank_with_no_signature() {
assert_eq!(
result,
Err(BankError::InstructionError(
Err(TransactionError::InstructionError(
1,
InstructionError::ProgramError(ProgramError::InvalidArgument)
))