We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 235a98e commit 252662dCopy full SHA for 252662d
zebra-consensus/src/transaction.rs
@@ -1109,7 +1109,11 @@ where
1109
1110
// FIXME implement a more graceful decision making which sighash we sign based on NetworkUpgrade
1111
#[cfg(feature = "zsa-swap")]
1112
- let action_group_sighash = _action_group_sighashes.get(_index).unwrap();
+ let action_group_sighash = _action_group_sighashes.get(_index).ok_or(
1113
+ TransactionError::InternalDowncastError(
1114
+ "action group sighash missing".to_string(),
1115
+ ),
1116
+ )?;
1117
1118
for authorized_action in action_group.actions.clone() {
1119
// In case of multiple action group we sign action group sighash instead of
0 commit comments