Skip to content

Commit

Permalink
Merge pull request #6369 from connext/hotfix-sdk-getsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
preethamr authored Oct 8, 2024
2 parents 3e0d3b2 + 7d12cbe commit e0b6ae5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/agents/sdk-wrapper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Next Release

## 2.5.0-alpha.9

- Fix excluded chains

## 2.5.0-alpha.8

- Fix estimates for Metis
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/sdk-wrapper/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions packages/agents/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Next Release

## 2.5.0-alpha.9

- Fix excluded chains

## 2.5.0-alpha.8

- Fix estimates for Metis
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/agents/sdk/src/sdkShared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e0b6ae5

Please sign in to comment.