chore: decrease private access (#13912)

This commit is contained in:
Matthias Seitz
2025-01-22 02:32:04 +01:00
committed by GitHub
parent 901240877a
commit b263b5c62d

View File

@ -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();
@ -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))
}
}