mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make transaction type fields private (#13915)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -45,9 +45,9 @@ where
|
||||
) -> Result<Self::Transaction, Self::Error> {
|
||||
let from = tx.signer();
|
||||
let hash = *tx.tx_hash();
|
||||
let TransactionSigned { transaction, signature, .. } = tx.into_tx();
|
||||
let signature = *tx.signature();
|
||||
|
||||
let inner: TxEnvelope = match transaction {
|
||||
let inner: TxEnvelope = match tx.into_tx().into_transaction() {
|
||||
reth_primitives::Transaction::Legacy(tx) => {
|
||||
Signed::new_unchecked(tx, signature, hash).into()
|
||||
}
|
||||
@ -63,8 +63,6 @@ where
|
||||
reth_primitives::Transaction::Eip7702(tx) => {
|
||||
Signed::new_unchecked(tx, signature, hash).into()
|
||||
}
|
||||
#[allow(unreachable_patterns)]
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
let TransactionInfo {
|
||||
|
||||
Reference in New Issue
Block a user