From 1e2b753a25790f847a310548c32059d431e0b3cf Mon Sep 17 00:00:00 2001 From: hamid Date: Mon, 8 Dec 2025 13:57:56 +0100 Subject: [PATCH] [Ethereum-historical-indexer] Fix missing base fee per gas field --- src/rust_indexer/ethereum_indexer_psql_historical/src/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust_indexer/ethereum_indexer_psql_historical/src/models.rs b/src/rust_indexer/ethereum_indexer_psql_historical/src/models.rs index fed89e16..67431994 100644 --- a/src/rust_indexer/ethereum_indexer_psql_historical/src/models.rs +++ b/src/rust_indexer/ethereum_indexer_psql_historical/src/models.rs @@ -36,7 +36,7 @@ pub struct NewBlock { impl From<&EthBlock> for NewBlock { fn from(b: &EthBlock) -> Self { let num = b.number.unwrap(); - let base_fee = b.base_fee_per_gas.unwrap(); + let base_fee = b.base_fee_per_gas.unwrap_or(U256::from(0)); NewBlock { block_number: u64_to_i64(&num), -- GitLab