Skip to content

Commit

Permalink
feat: Remove duplicated to method in TransactionResponse (#1770)
Browse files Browse the repository at this point in the history
feat: Remove redundant `to` method in `TransactionResponse`
  • Loading branch information
moricho authored Dec 9, 2024
1 parent ae92049 commit 53371fa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/network-primitives/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ pub trait TransactionResponse: Transaction {
/// Sender of the transaction
fn from(&self) -> Address;

/// Recipient of the transaction. Returns `None` if transaction is a contract creation.
fn to(&self) -> Option<Address> {
self.kind().to().copied()
}

/// Gas Price, this is the RPC format for `max_fee_per_gas`, pre-eip-1559.
fn gas_price(&self) -> Option<u128> {
if self.ty() < 2 {
Expand Down

0 comments on commit 53371fa

Please sign in to comment.