chore(sdk): Impl alloy_consensus::Transaction for TransactionSigned (#11843)

This commit is contained in:
Emilia Hane
2024-10-17 18:29:17 +02:00
committed by GitHub
parent 2131c87edb
commit 9db28d91a4
5 changed files with 71 additions and 10 deletions

View File

@ -1183,7 +1183,7 @@ impl PoolTransaction for EthPooledTransaction {
/// For EIP-1559 transactions: `min(max_fee_per_gas - base_fee, max_priority_fee_per_gas)`.
/// For legacy transactions: `gas_price - base_fee`.
fn effective_tip_per_gas(&self, base_fee: u64) -> Option<u128> {
self.transaction.effective_tip_per_gas(Some(base_fee))
self.transaction.effective_tip_per_gas(base_fee)
}
/// Returns the max priority fee per gas if the transaction is an EIP-1559 transaction, and
@ -1199,7 +1199,7 @@ impl PoolTransaction for EthPooledTransaction {
}
fn input(&self) -> &[u8] {
self.transaction.input().as_ref()
self.transaction.input()
}
/// Returns a measurement of the heap usage of this type and all its internals.