mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: clippy (#5674)
This commit is contained in:
@ -169,7 +169,7 @@ impl PayloadBuilderAttributes {
|
||||
|
||||
#[cfg(feature = "optimism")]
|
||||
let (id, transactions) = {
|
||||
let transactions = attributes
|
||||
let transactions: Vec<_> = attributes
|
||||
.optimism_payload_attributes
|
||||
.transactions
|
||||
.as_deref()
|
||||
@ -276,7 +276,7 @@ impl PayloadBuilderAttributes {
|
||||
pub(crate) fn payload_id(
|
||||
parent: &B256,
|
||||
attributes: &PayloadAttributes,
|
||||
#[cfg(feature = "optimism")] txs: &Vec<TransactionSigned>,
|
||||
#[cfg(feature = "optimism")] txs: &[TransactionSigned],
|
||||
) -> PayloadId {
|
||||
use sha2::Digest;
|
||||
let mut hasher = sha2::Sha256::new();
|
||||
|
||||
Reference in New Issue
Block a user