Skip to content

Commit 87a757d

Browse files
committed
fix: hooks binding
1 parent f41611e commit 87a757d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sdk/market/pricefeeds/PriceFeedsRegister.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export class PriceFeedRegister
6060
// this.zeroPriceFeed = new ZeroPriceFeedContract({});
6161
}
6262

63-
public addHook = this.#hooks.addHook.bind(this);
64-
public removeHook = this.#hooks.removeHook.bind(this);
63+
public addHook = this.#hooks.addHook.bind(this.#hooks);
64+
public removeHook = this.#hooks.removeHook.bind(this.#hooks);
6565

6666
/**
6767
* Returns RawTxs to update price feeds

src/sdk/router/RouterV3Contract.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export class RouterV3Contract
8787
this.#connectors = getConnectors(sdk.provider.networkType);
8888
}
8989

90-
public addHook = this.#hooks.addHook.bind(this);
91-
public removeHook = this.#hooks.removeHook.bind(this);
90+
public addHook = this.#hooks.addHook.bind(this.#hooks);
91+
public removeHook = this.#hooks.removeHook.bind(this.#hooks);
9292

9393
/**
9494
* Finds all available swaps for NORMAL tokens

0 commit comments

Comments
 (0)