Skip to content

Commit 252662d

Browse files
committed
Fmt
1 parent 235a98e commit 252662d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

zebra-consensus/src/transaction.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,11 @@ where
11091109

11101110
// FIXME implement a more graceful decision making which sighash we sign based on NetworkUpgrade
11111111
#[cfg(feature = "zsa-swap")]
1112-
let action_group_sighash = _action_group_sighashes.get(_index).unwrap();
1112+
let action_group_sighash = _action_group_sighashes.get(_index).ok_or(
1113+
TransactionError::InternalDowncastError(
1114+
"action group sighash missing".to_string(),
1115+
),
1116+
)?;
11131117
#[cfg(feature = "zsa-swap")]
11141118
for authorized_action in action_group.actions.clone() {
11151119
// In case of multiple action group we sign action group sighash instead of

0 commit comments

Comments
 (0)