Skip to content

Commit c234c27

Browse files
committed
Fix failed equality change
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 932969e commit c234c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clarity/src/vm/database/structures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ impl<'db, 'conn> STXBalanceSnapshot<'db, 'conn> {
623623
}
624624

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

0 commit comments

Comments
 (0)