Plumb TransactionError through Rpc

This commit is contained in:
Tyera Eulberg
2019-04-05 19:07:30 -06:00
committed by Tyera Eulberg
parent 569a289a6f
commit 90c1300bb6
3 changed files with 70 additions and 48 deletions

View File

@ -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

View File

@ -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,