You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During runtime, when attempting to access CRO methods within the scope of resolveConflict, this loses its context and no longer refers to the implemented CRO but rather points to the hashgraph (i.e. this === HashGraph). This is caused by passing cro.resolveConflicts during the hash graph construction in the TopologyObject.
Fixing this is crucial to allow implementors of the CRO interface to access their implementation methods and states.
During runtime, when attempting to access CRO methods within the scope of
resolveConflict
,this
loses its context and no longer refers to the implemented CRO but rather points to the hashgraph (i.e.this
===HashGraph
). This is caused by passingcro.resolveConflicts
during the hash graph construction in theTopologyObject
.Fixing this is crucial to allow implementors of the CRO interface to access their implementation methods and states.
The problematic line of code is located here: https://github.com/topology-foundation/ts-topology/blob/cda5dd5300be6656f0b53738fa9e1c1054835d80/packages/object/src/index.ts#L59
The text was updated successfully, but these errors were encountered: