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

Commit

Permalink
deref
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Oct 30, 2023
1 parent bc17092 commit 3209735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/payload/builder/src/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ impl PayloadBuilderAttributes {
let transactions = attributes
.optimism_payload_attributes
.transactions
.as_ref()
.unwrap_or(&Vec::default())
.as_deref()
.unwrap_or(&[])
.iter()
.map(|tx| TransactionSigned::decode_enveloped(tx.clone()))
.collect::<Result<_, _>>()?;
Expand Down

0 comments on commit 3209735

Please sign in to comment.