chore: bump alloy 0.11 (#14122)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Roman Krasiuk
2025-01-31 12:44:20 +01:00
committed by GitHub
parent bd5dde54ef
commit 5322877aed
25 changed files with 256 additions and 270 deletions

View File

@ -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() {

View File

@ -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();
}

View File

@ -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())
};