Skip to content

Commit

Permalink
contract: fix invalid bundle transition reveal logic
Browse files Browse the repository at this point in the history
Closes #253
  • Loading branch information
dr-orlovsky committed Aug 10, 2024
1 parent a90e556 commit 7964412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl BundleExt for TransitionBundle {

fn reveal_transition(&mut self, transition: Transition) -> Result<bool, RevealError> {
let opid = transition.id();
if self.input_map.values().any(|id| id != &opid) {
if self.input_map.values().all(|id| id != &opid) {
return Err(RevealError::UnrelatedTransition(opid, transition));
}
if self.known_transitions.contains_key(&opid) {
Expand Down

0 comments on commit 7964412

Please sign in to comment.