Skip to content

Commit

Permalink
review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joroshiba committed Apr 22, 2024
1 parent ebb17a7 commit 3279697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/astria-core/src/sequencerblock/v1alpha1/celestia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ impl UncheckedCelestiaSequencerBlob {
SequencerBlockHeader::try_from_raw(header).map_err(CelestiaSequencerBlobError::header)
}?;
let rollup_ids: Vec<_> = rollup_ids
.into_iter()
.map(|raw| RollupId::try_from_raw(&raw))
.iter()
.map(RollupId::try_from_raw)
.collect::<Result<_, _>>()
.map_err(CelestiaSequencerBlobError::rollup_ids)?;

Expand Down
4 changes: 2 additions & 2 deletions crates/astria-sequencer/src/grpc/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ impl SequencerService for SequencerServer {

let rollup_ids = request
.rollup_ids
.into_iter()
.map(|raw| RollupId::try_from_raw(&raw))
.iter()
.map(RollupId::try_from_raw)
.collect::<Result<Vec<_>, _>>()
.map_err(|e| Status::invalid_argument(format!("invalid rollup ID: {e}")))?;

Expand Down

0 comments on commit 3279697

Please sign in to comment.