Skip to content

Commit

Permalink
eth_gasPrice modification
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Sep 28, 2024
1 parent b355251 commit c177048
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/rpc/rpc-eth-api/src/helpers/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit c177048

Please sign in to comment.