mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: decrease private access (#13912)
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user