Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Nov 13, 2024
1 parent 7a33d52 commit da6a573
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions crates/primitives-traits/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ pub trait TransactionExt: alloy_consensus::Transaction {
/// It is only for signature signing or signer recovery.
fn signature_hash(&self) -> B256;

/// Returns the effective gas price for the given base fee.
// todo: remove when released: https://github.com/alloy-rs/alloy/pull/1640
fn effective_gas_price(&self, base_fee: Option<u64>) -> u128;

/// Returns the transaction type.
fn tx_type(&self) -> Self::Type {
Self::Type::try_from(self.ty()).expect("should decode tx type id")
Expand Down
4 changes: 0 additions & 4 deletions crates/primitives-traits/src/transaction/signed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,4 @@ impl<T: SignedTransaction> TransactionExt for T {
fn signature_hash(&self) -> B256 {
self.transaction().signature_hash()
}

fn effective_gas_price(&self, base_fee: Option<u64>) -> u128 {
self.transaction().effective_gas_price(base_fee)
}
}
2 changes: 2 additions & 0 deletions crates/primitives/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,8 @@ impl TransactionExt for Transaction {
pub struct TransactionSignedNoHash {
/// The transaction signature values
pub signature: Signature,
/// Raw transaction info
#[deref]
#[as_ref]
pub transaction: Transaction,
}
Expand Down

0 comments on commit da6a573

Please sign in to comment.