(cherry picked from commit 800472ddf5
)
Co-authored-by: Brooks Prumo <brooks@solana.com>
This commit is contained in:
@ -106,6 +106,7 @@ enum InstructionErrorType {
|
||||
ARITHMETIC_OVERFLOW = 47;
|
||||
UNSUPPORTED_SYSVAR = 48;
|
||||
ILLEGAL_OWNER = 49;
|
||||
ACCOUNTS_DATA_BUDGET_EXCEEDED = 50;
|
||||
}
|
||||
|
||||
message UnixTimestamp {
|
||||
|
@ -536,6 +536,7 @@ impl TryFrom<tx_by_addr::TransactionError> for TransactionError {
|
||||
47 => InstructionError::ArithmeticOverflow,
|
||||
48 => InstructionError::UnsupportedSysvar,
|
||||
49 => InstructionError::IllegalOwner,
|
||||
50 => InstructionError::AccountsDataBudgetExceeded,
|
||||
_ => return Err("Invalid InstructionError"),
|
||||
};
|
||||
|
||||
@ -799,6 +800,9 @@ impl From<TransactionError> for tx_by_addr::TransactionError {
|
||||
InstructionError::IllegalOwner => {
|
||||
tx_by_addr::InstructionErrorType::IllegalOwner
|
||||
}
|
||||
InstructionError::AccountsDataBudgetExceeded => {
|
||||
tx_by_addr::InstructionErrorType::AccountsDataBudgetExceeded
|
||||
}
|
||||
} as i32,
|
||||
custom: match instruction_error {
|
||||
InstructionError::Custom(custom) => {
|
||||
|
Reference in New Issue
Block a user