From 0262f29b4436b473e4be2013ac70166182833871 Mon Sep 17 00:00:00 2001 From: somehowchris Date: Wed, 29 Jan 2025 17:40:14 +0100 Subject: [PATCH] fix: making difficulty and totalDifficulty fields optional --- src/rpc/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/types.rs b/src/rpc/types.rs index 518a814..967f6b9 100644 --- a/src/rpc/types.rs +++ b/src/rpc/types.rs @@ -24,7 +24,7 @@ use crate::hex_to_decimal; #[derive(Debug, Deserialize, Serialize)] #[allow(dead_code, non_snake_case)] pub struct BlockResult { - difficulty: String, + difficulty: Option, extraData: String, gasLimit: String, gasUsed: String, @@ -40,7 +40,7 @@ pub struct BlockResult { size: String, stateRoot: String, pub timestamp: String, - totalDifficulty: String, + totalDifficulty: Option, pub transactions: Vec, transactionsRoot: String, uncles: Vec,