Plumb TransactionError through Rpc
This commit is contained in:
committed by
Tyera Eulberg
parent
569a289a6f
commit
90c1300bb6
@ -7,7 +7,7 @@ use bincode::serialize;
|
||||
use serde::Serialize;
|
||||
|
||||
/// Reasons the runtime might have rejected an instruction.
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
|
||||
pub enum InstructionError {
|
||||
/// Deprecated! Use CustomError instead!
|
||||
/// The program instruction returned an error
|
||||
|
@ -10,7 +10,7 @@ use bincode::serialize;
|
||||
use std::result;
|
||||
|
||||
/// Reasons a transaction might be rejected.
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
|
||||
pub enum TransactionError {
|
||||
/// This Pubkey is being processed in another transaction
|
||||
AccountInUse,
|
||||
|
Reference in New Issue
Block a user