mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-13 00:14:58 -05:00
feat(txpool): add authorization list setter to mock transaction (#16068)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user