Rename IOError to BorshIoError

This commit is contained in:
Michael Vines
2021-02-19 08:53:13 -08:00
parent 58b35db384
commit 995bd0cb6b
6 changed files with 16 additions and 14 deletions

View File

@ -114,6 +114,6 @@ pub enum InstructionErrorType {
ProgramFailedToCompile = 41,
Immutable = 42,
IncorrectAuthority = 43,
IOError = 44,
BorshIoError = 44,
AccountNotRentExempt = 45,
}

View File

@ -700,8 +700,8 @@ impl From<TransactionError> for tx_by_addr::TransactionError {
InstructionError::IncorrectAuthority => {
tx_by_addr::InstructionErrorType::IncorrectAuthority
}
InstructionError::IOError(_) => {
tx_by_addr::InstructionErrorType::IOError
InstructionError::BorshIoError(_) => {
tx_by_addr::InstructionErrorType::BorshIoError
}
InstructionError::AccountNotRentExempt => {
tx_by_addr::InstructionErrorType::AccountNotRentExempt

View File

@ -93,6 +93,8 @@ enum InstructionErrorType {
PROGRAM_FAILED_TO_COMPILE = 41;
IMMUTABLE = 42;
INCORRECT_AUTHORITY = 43;
BORSH_IO_ERROR = 44;
ACCOUNT_NOT_RENT_EXEMPT = 45;
}
message UnixTimestamp {