We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e9177 commit 73e6a69Copy full SHA for 73e6a69
src/util/psbt/map/input.rs
@@ -178,9 +178,8 @@ impl FromStr for PsbtSighashType {
178
// NB: some of Schnorr sighash types are non-standard for pre-taproot
179
// inputs. We also do not support SIGHASH_RESERVED in verbatim form
180
// ("0xFF" string should be used instead).
181
- match SchnorrSighashType::from_str(s) {
182
- Ok(ty) => return Ok(ty.into()),
183
- Err(_) => {}
+ if let Ok(ty) = SchnorrSighashType::from_str(s) {
+ return Ok(ty.into());
184
}
185
186
// We accept non-standard sighash values.
0 commit comments