Skip to content

Commit

Permalink
fix: wrong assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
X committed Jun 10, 2024
1 parent 7372b2e commit d4c0c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ where
balances_after.retain(|(id, _)| id != &token_id.to_string());
} else {
assert!(*balance < i128::MAX as u128);
assert!(*balance >= delta.unsigned_abs());
assert!(delta.unsigned_abs() < i128::MAX as u128);
*balance = (*balance as i128 - delta) as u128;
}
}
Expand Down

0 comments on commit d4c0c96

Please sign in to comment.