Skip to content

Commit

Permalink
Unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Feb 12, 2024
1 parent 0248e3e commit 13082b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/src/wallet/operations/block_on_acceptance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ where
|| transaction.inclusion_state == InclusionState::Confirmed
|| transaction.inclusion_state == InclusionState::Finalized
{
return transaction.block_id.ok_or(Error::MissingParameter("block id"));
return Ok(transaction
.block_id
.expect("missing block id in TransactionWithMetadata"));
}

if transaction.inclusion_state == InclusionState::Conflicting
Expand Down

0 comments on commit 13082b9

Please sign in to comment.