From 881b5d866f71bd7d635c2df8a678ca55eb1ff9ce Mon Sep 17 00:00:00 2001 From: just-a-node Date: Tue, 8 Oct 2024 01:38:37 -0600 Subject: [PATCH 1/2] fix: skip assets found in db if server config excludes the chain --- packages/agents/sdk/src/sdkShared.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/agents/sdk/src/sdkShared.ts b/packages/agents/sdk/src/sdkShared.ts index fca9a6616e..0d5b5d6287 100644 --- a/packages/agents/sdk/src/sdkShared.ts +++ b/packages/agents/sdk/src/sdkShared.ts @@ -452,6 +452,12 @@ export class SdkShared { for (const asset of data) { const chainConfig = this.config.chains[asset.domain]; + + // Skip assets when chain config is not configured + if (!chainConfig) { + continue; + } + if (!chainConfig.disabled && !chainConfig.disabledAssets?.includes(utils.getAddress(asset.adopted))) { const support = supported.get(asset.domain); if (support) { From 7d12cbe77ee8dc704e07c1385bed7b9fa2a0fc97 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Tue, 8 Oct 2024 01:42:19 -0600 Subject: [PATCH 2/2] chore: version bump, changelogs --- packages/agents/sdk-wrapper/CHANGELOG.md | 4 ++++ packages/agents/sdk-wrapper/package.json | 2 +- packages/agents/sdk/CHANGELOG.md | 4 ++++ packages/agents/sdk/package.json | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/agents/sdk-wrapper/CHANGELOG.md b/packages/agents/sdk-wrapper/CHANGELOG.md index c43fe3ac4c..4de45cfed3 100644 --- a/packages/agents/sdk-wrapper/CHANGELOG.md +++ b/packages/agents/sdk-wrapper/CHANGELOG.md @@ -2,6 +2,10 @@ ## Next Release +## 2.5.0-alpha.9 + +- Fix excluded chains + ## 2.5.0-alpha.8 - Fix estimates for Metis diff --git a/packages/agents/sdk-wrapper/package.json b/packages/agents/sdk-wrapper/package.json index 20e3983750..2961cfedeb 100644 --- a/packages/agents/sdk-wrapper/package.json +++ b/packages/agents/sdk-wrapper/package.json @@ -1,6 +1,6 @@ { "name": "@connext/sdk", - "version": "2.5.0-alpha.8", + "version": "2.5.0-alpha.9", "description": "Client-side package for interacting with the Connext protocol", "author": "Connext", "license": "MIT", diff --git a/packages/agents/sdk/CHANGELOG.md b/packages/agents/sdk/CHANGELOG.md index e9d5427bf4..c6e81fc6e2 100644 --- a/packages/agents/sdk/CHANGELOG.md +++ b/packages/agents/sdk/CHANGELOG.md @@ -2,6 +2,10 @@ ## Next Release +## 2.5.0-alpha.9 + +- Fix excluded chains + ## 2.5.0-alpha.8 - Fix estimates for Metis diff --git a/packages/agents/sdk/package.json b/packages/agents/sdk/package.json index 9a8b1421df..2126797cfc 100644 --- a/packages/agents/sdk/package.json +++ b/packages/agents/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@connext/sdk-core", - "version": "2.5.0-alpha.8", + "version": "2.5.0-alpha.9", "description": "Client-side package for interacting with the Connext protocol", "author": "Connext", "license": "MIT",