From e9c07668244dd4de2530a6a70c521d66487ab5b3 Mon Sep 17 00:00:00 2001 From: Levi Cook Date: Sun, 3 Nov 2024 17:04:52 -0700 Subject: [PATCH 1/2] make InstructionError optional because it is not always there --- src/types/enhanced_transaction_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/enhanced_transaction_types.rs b/src/types/enhanced_transaction_types.rs index 98d4dc7c..99c06bde 100644 --- a/src/types/enhanced_transaction_types.rs +++ b/src/types/enhanced_transaction_types.rs @@ -78,7 +78,7 @@ pub struct TokenTransfer { #[serde(rename_all = "camelCase")] pub struct TransactionError { #[serde(rename = "InstructionError")] - pub instruciton_error: serde_json::Value, + pub instruciton_error: Option, } #[derive(Serialize, Deserialize, Debug)] From c36cc890afdfcfb8213198d17b90ed5d9257099e Mon Sep 17 00:00:00 2001 From: Levi Cook Date: Mon, 4 Nov 2024 14:28:28 -0700 Subject: [PATCH 2/2] spelling: instruciton_error -> instruction_error --- src/types/enhanced_transaction_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/enhanced_transaction_types.rs b/src/types/enhanced_transaction_types.rs index 99c06bde..f3493936 100644 --- a/src/types/enhanced_transaction_types.rs +++ b/src/types/enhanced_transaction_types.rs @@ -78,7 +78,7 @@ pub struct TokenTransfer { #[serde(rename_all = "camelCase")] pub struct TransactionError { #[serde(rename = "InstructionError")] - pub instruciton_error: Option, + pub instruction_error: Option, } #[derive(Serialize, Deserialize, Debug)]