@gearbox-protocol/sdk 11.9.0-next.1 → 11.9.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -283,7 +283,8 @@ class PriceFeedRegister extends import_base.SDKConstruct {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
#createUpdatableProxy(data) {
|
|
286
|
-
|
|
286
|
+
const contract = this.#feeds.get(data.baseParams.addr) ?? this.create(data);
|
|
287
|
+
return new Proxy(contract, {
|
|
287
288
|
get(target, prop) {
|
|
288
289
|
if (prop === "updatableDependencies") {
|
|
289
290
|
return () => [target];
|
|
@@ -267,7 +267,8 @@ class PriceFeedRegister extends SDKConstruct {
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
#createUpdatableProxy(data) {
|
|
270
|
-
|
|
270
|
+
const contract = this.#feeds.get(data.baseParams.addr) ?? this.create(data);
|
|
271
|
+
return new Proxy(contract, {
|
|
271
272
|
get(target, prop) {
|
|
272
273
|
if (prop === "updatableDependencies") {
|
|
273
274
|
return () => [target];
|