We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_setRootStates
_setRootStates assigns aclState and drpState as references instead of deep copies:
aclState
drpState
this.aclStates.set(HashGraph.rootHash, { state: aclState }); this.drpStates.set(HashGraph.rootHash, { state: drpState });
Since aclState and drpState reference acl and drp, updates to these objects also modify the root vertex state, causing unintended changes.
acl
drp
The text was updated successfully, but these errors were encountered:
trungnotchung
Successfully merging a pull request may close this issue.
_setRootStates
assignsaclState
anddrpState
as references instead of deep copies:Since
aclState
anddrpState
referenceacl
anddrp
, updates to these objects also modify the root vertex state, causing unintended changes.The text was updated successfully, but these errors were encountered: