diff --git a/crates/rpc/rpc-eth-api/src/helpers/fee.rs b/crates/rpc/rpc-eth-api/src/helpers/fee.rs index a8fbc7e7fa73d..874d6cd96fb25 100644 --- a/crates/rpc/rpc-eth-api/src/helpers/fee.rs +++ b/crates/rpc/rpc-eth-api/src/helpers/fee.rs @@ -333,7 +333,10 @@ pub trait LoadFee: LoadBlock { let suggested_tip = self.suggested_priority_fee(); async move { let (header, suggested_tip) = futures::try_join!(header, suggested_tip)?; - let base_fee = header.and_then(|h| h.base_fee_per_gas).unwrap_or_default(); + #[cfg(not(feature = "telos"))] + let base_fee = header.clone().and_then(|h| h.base_fee_per_gas).unwrap_or_default(); + #[cfg(feature = "telos")] + let base_fee = header.and_then(|h| Some(h.telos_block_extension.get_last_gas_price())).unwrap_or_default(); Ok(suggested_tip + U256::from(base_fee)) } }