Skip to content

Commit

Permalink
psbt: fix detection of close method in push_rgb_transition
Browse files Browse the repository at this point in the history
Closes #168
  • Loading branch information
dr-orlovsky committed Apr 15, 2024
1 parent ac11098 commit 0e7858f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psbt/src/rgb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ impl RgbExt for Psbt {
let opid = transition.id();

let prev_method = self.rgb_close_method(opid)?;
if Some(method) != prev_method {
if matches!(prev_method, Some(prev_method) if prev_method != method) {
return Err(RgbPsbtError::InvalidCloseMethod(opid));
}

Expand Down

0 comments on commit 0e7858f

Please sign in to comment.