From a84082d39667f9195773ef0633c01bf097d841fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Demay?= Date: Fri, 28 Jun 2024 14:39:07 +0000 Subject: [PATCH] fix(evmrpc): Various fields in `Block` should be optional --- rs/ethereum/cketh/minter/src/eth_rpc.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rs/ethereum/cketh/minter/src/eth_rpc.rs b/rs/ethereum/cketh/minter/src/eth_rpc.rs index c3531980a1b..257f246aa90 100644 --- a/rs/ethereum/cketh/minter/src/eth_rpc.rs +++ b/rs/ethereum/cketh/minter/src/eth_rpc.rs @@ -450,9 +450,9 @@ impl From for BlockSpec { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, CandidType)] pub struct Block { #[serde(rename = "baseFeePerGas")] - pub base_fee_per_gas: Wei, + pub base_fee_per_gas: Option, pub number: BlockNumber, - pub difficulty: CheckedAmountOf<()>, + pub difficulty: Option>, #[serde(rename = "extraData")] pub extra_data: String, #[serde(rename = "gasLimit")] @@ -478,7 +478,7 @@ pub struct Block { #[serde(rename = "timestamp")] pub timestamp: CheckedAmountOf<()>, #[serde(rename = "totalDifficulty")] - pub total_difficulty: CheckedAmountOf<()>, + pub total_difficulty: Option>, #[serde(default)] pub transactions: Vec, #[serde(rename = "transactionsRoot")]