Refactor flag checks - add hsfOVERRIDE for install op

This commit is contained in:
zgrguric
2025-11-15 12:51:09 +01:00
committed by GitHub
parent a1b9a33687
commit e29e0e4f01

View File

@@ -1082,7 +1082,11 @@ var xrpl;(()=>{var e={54373:(e,t)=>{"use strict";function r(e){if(!Number.isSafe
(this.new.CreateCode !== undefined && this.new.CreateCode !== "") //OR CreateCode is specified and not blank
) &&
(
this.new.Flags !== undefined && (this._isFlagSet(this.new.Flags,1) || this.new.Flags == 0) //Flags is specified and have hsfOVERRIDE or is without override as 0
this.new.Flags !== undefined && ( //Flags is specified
this._isFlagSet(this.new.Flags,1) || //has override
this.new.Flags == 0 || //without override as 0
this.new.Flags == 4 //without override but collect calls only
)
)
// && !this._isFlagSet(this.new.Flags,2) //hsfNSDELETE namespace delete flag is forbidden
) {