Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
refactor(transaction_signed): removes commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohba1 committed Mar 8, 2024
1 parent 81a1f05 commit 63a8314
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/transactions/transaction_signed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,3 @@ pub fn trace_to_signed(trace: &TransactionTrace) -> Result<TransactionSigned, Tr
};
Ok(tx_signed)
}

// impl TryFrom<&TransactionTrace> for TransactionSigned {
// type Error = TransactionError;
//
// fn try_from(trace: &TransactionTrace) -> Result<Self, Self::Error> {
// let transaction = Transaction::try_from(trace)?;
// let signature = Signature::try_from(trace)?;
// let hash = B256::from_str(&hex::encode(trace.hash.as_slice()))
// .map_err(|_| TransactionError::MissingCall)?;
// let tx_signed = TransactionSigned {
// transaction,
// signature,
// hash,
// };
// Ok(tx_signed)
// }
// }
//

0 comments on commit 63a8314

Please sign in to comment.