feat(txpool): add authorization list setter to mock transaction (#16068)

This commit is contained in:
Jonas Bostoen
2025-05-05 19:28:50 +02:00
committed by GitHub
parent f245708445
commit fdcc4c078d

View File

@@ -482,6 +482,15 @@ impl MockTransaction {
self
}
/// Sets the authorization list for EIP-7702 transactions.
pub fn set_authorization_list(&mut self, list: Vec<SignedAuthorization>) -> &mut Self {
if let Self::Eip7702 { authorization_list, .. } = self {
*authorization_list = list;
}
self
}
/// Sets the gas price for the transaction.
pub const fn set_gas_price(&mut self, val: u128) -> &mut Self {
match self {