Skip to content

Commit

Permalink
fix: change precondition of LITStaking VC value being true to require…
Browse files Browse the repository at this point in the history
… amount to be greater than 0
  • Loading branch information
higherordertech authored and higherordertech committed Jun 14, 2024
1 parent fc0c681 commit 5d8a7de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ impl UpdateLITStakingAmountCredential for Credential {
}

self.credential_subject.assertions.push(assertion);
self.credential_subject.values.push(true);
// The credential value should be true if amount > ranges[0].
self.credential_subject.values.push(amount > lit_staking.get_range()[0] as u128);

let info = lit_staking.get_info();
self.add_subject_info(info.1, info.0);
Expand Down

0 comments on commit 5d8a7de

Please sign in to comment.