Expanding conditions only when they belong to the same scriptAccount
All checks were successful
E2E Testing / test (push) Successful in 1m30s

This commit is contained in:
Sebastian Böckelmann 2024-02-17 19:07:24 +01:00
parent f6b22583c8
commit 49154058fc

View File

@ -17,7 +17,7 @@ export class ScriptAccountCondition {
}
extendCondition(condition: ScriptAccountCondition) {
if(!this.isContradicting(condition)) {
if(!this.isContradicting(condition) && this.scriptAccount === condition.scriptAccount) {
this.minValue = Math.min(this.minValue, condition.minValue);
this.maxValue = Math.max(this.maxValue, condition.maxValue);
}