Skip to content

Commit

Permalink
Fix failed equality change
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Dec 18, 2024
1 parent 932969e commit c234c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clarity/src/vm/database/structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ impl<'db, 'conn> STXBalanceSnapshot<'db, 'conn> {
}

// caller needs to have checked this
if amount_to_lock != 0 {
if amount_to_lock == 0 {
return Err(InterpreterError::Expect("BUG: cannot lock 0 tokens".into()).into());
}

Expand Down

0 comments on commit c234c27

Please sign in to comment.