Skip to content

Commit

Permalink
refactor missing CRO
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Nov 19, 2024
1 parent dcfef9f commit 5626b25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/object/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class DRPObject implements IDRPObject {
this.abi = abi ?? "";
this.bytecode = new Uint8Array();
this.vertices = [];
this.drp = drp ? new Proxy(drp, this.proxyCROHandler()) : null;
this.drp = drp ? new Proxy(drp, this.proxyDRPHandler()) : null;
this.hashGraph = new HashGraph(
nodeId,
drp?.resolveConflicts?.bind(drp ?? this),
Expand All @@ -77,8 +77,8 @@ export class DRPObject implements IDRPObject {
this.subscriptions = [];
}

// This function is black magic, it allows us to intercept calls to the CRO object
proxyCROHandler(): ProxyHandler<object> {
// This function is black magic, it allows us to intercept calls to the DRP object
proxyDRPHandler(): ProxyHandler<object> {
const obj = this;
return {
get(target, propKey, receiver) {
Expand Down

0 comments on commit 5626b25

Please sign in to comment.