mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore!:unify trait fn naming for recovery (#13981)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user