Expanding conditions only when they belong to the same scriptAccount
All checks were successful
E2E Testing / test (push) Successful in 1m30s
All checks were successful
E2E Testing / test (push) Successful in 1m30s
This commit is contained in:
parent
f6b22583c8
commit
49154058fc
@ -17,7 +17,7 @@ export class ScriptAccountCondition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extendCondition(condition: 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.minValue = Math.min(this.minValue, condition.minValue);
|
||||||
this.maxValue = Math.max(this.maxValue, condition.maxValue);
|
this.maxValue = Math.max(this.maxValue, condition.maxValue);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user