Skip to content

Commit

Permalink
Prefer signed_transaction_data issuer_id over options issuer_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Apr 15, 2024
1 parent 1c92b5f commit 117200b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sdk/src/wallet/operations/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ where
let block_id = match self
.submit_basic_block(
Some(Payload::from(signed_transaction_data.payload.clone())),
options
.as_ref()
.and_then(|options| options.issuer_id)
.or(signed_transaction_data.issuer_id),
signed_transaction_data
.issuer_id
.or_else(|| options.as_ref().and_then(|options| options.issuer_id)),
true,
)
.await
Expand Down

0 comments on commit 117200b

Please sign in to comment.