mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(rpc): set effective gas price (#2570)
This commit is contained in:
@ -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 {
|
||||
|
||||
@ -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>,
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user