Skip to content

Commit

Permalink
chore: decrease private access (#13912)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 22, 2025
1 parent 9012408 commit b263b5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ethereum/primitives/src/alloy_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ impl TryFrom<AnyRpcTransaction> for TransactionSigned {

let WithOtherFields { inner: tx, other: _ } = tx;

#[allow(unreachable_patterns)]
let (transaction, signature, hash) = match tx.inner {
AnyTxEnvelope::Ethereum(TxEnvelope::Legacy(tx)) => {
let (tx, signature, hash) = tx.into_parts();
Expand All @@ -39,6 +38,6 @@ impl TryFrom<AnyRpcTransaction> for TransactionSigned {
_ => return Err(ConversionError::Custom("unknown transaction type".to_string())),
};

Ok(Self { transaction, signature, hash: hash.into() })
Ok(Self::new(transaction, signature, hash))
}
}

0 comments on commit b263b5c

Please sign in to comment.