chore!:unify trait fn naming for recovery (#13981)

This commit is contained in:
Matthias Seitz
2025-01-24 21:56:46 +01:00
committed by GitHub
parent 61ae871d94
commit 5dac5cfc62
16 changed files with 58 additions and 60 deletions

View File

@ -100,7 +100,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
provider
.block(best_number.into())?
.expect("the header for the latest block is missing, database is corrupt")
.seal(best_hash),
.seal_unchecked(best_hash),
))
}
@ -166,7 +166,7 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
for tx_bytes in &self.transactions {
debug!(target: "reth::cli", bytes = ?tx_bytes, "Decoding transaction");
let transaction = TransactionSigned::decode(&mut &Bytes::from_str(tx_bytes)?[..])?
.try_ecrecovered()
.try_clone_into_recovered()
.map_err(|e| eyre::eyre!("failed to recover tx: {e}"))?;
let encoded_length = match &transaction.transaction {