mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: bump alloy 0.11 (#14122)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -5,6 +5,7 @@ use alloy_consensus::{
|
||||
use alloy_eips::{
|
||||
eip2718::{Decodable2718, Eip2718Error, Eip2718Result, Encodable2718},
|
||||
eip4895::Withdrawals,
|
||||
Typed2718,
|
||||
};
|
||||
use alloy_primitives::{
|
||||
bytes::{Buf, BytesMut},
|
||||
@ -217,6 +218,12 @@ impl Decodable for OvmTransactionSigned {
|
||||
}
|
||||
}
|
||||
|
||||
impl Typed2718 for OvmTransactionSigned {
|
||||
fn ty(&self) -> u8 {
|
||||
self.transaction.tx_type() as u8
|
||||
}
|
||||
}
|
||||
|
||||
impl Encodable2718 for OvmTransactionSigned {
|
||||
fn type_flag(&self) -> Option<u8> {
|
||||
match self.transaction.tx_type() {
|
||||
|
||||
@ -265,7 +265,7 @@ impl alloy_rlp::Encodable for OpTransactionSigned {
|
||||
|
||||
fn length(&self) -> usize {
|
||||
let mut payload_length = self.encode_2718_len();
|
||||
if !Encodable2718::is_legacy(self) {
|
||||
if !self.is_legacy() {
|
||||
payload_length += Header { list: false, payload_length }.length();
|
||||
}
|
||||
|
||||
|
||||
@ -127,7 +127,7 @@ where
|
||||
} else {
|
||||
base_fee
|
||||
.map(|base_fee| {
|
||||
inner.effective_tip_per_gas(base_fee as u64).unwrap_or_default() + base_fee
|
||||
inner.effective_tip_per_gas(base_fee).unwrap_or_default() + base_fee as u128
|
||||
})
|
||||
.unwrap_or_else(|| inner.max_fee_per_gas())
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user