fix(rpc): set effective gas price (#2570)

This commit is contained in:
Matthias Seitz
2023-05-05 11:42:59 +02:00
committed by GitHub
parent b7c46db05d
commit 0ae9c28397
6 changed files with 61 additions and 48 deletions

View File

@ -108,7 +108,10 @@ pub use ethers_core::{
utils as rpc_utils,
};
pub use revm_primitives::{B160 as H160, B256 as H256, U256};
pub use ruint::{aliases::U128, UintTryTo};
pub use ruint::{
aliases::{U128, U8},
UintTryTo,
};
#[doc(hidden)]
mod __reexport {

View File

@ -11,4 +11,6 @@ pub struct TransactionMeta {
pub block_hash: H256,
/// Number of the block.
pub block_number: u64,
/// Base fee of the block.
pub base_fee: Option<u64>,
}

View File

@ -1,3 +1,4 @@
use crate::U8;
use reth_codecs::{derive_arbitrary, Compact};
use serde::{Deserialize, Serialize};
@ -34,6 +35,12 @@ impl From<TxType> for u8 {
}
}
impl From<TxType> for U8 {
fn from(value: TxType) -> Self {
U8::from(u8::from(value))
}
}
impl Compact for TxType {
fn to_compact<B>(self, _: &mut B) -> usize
where