Skip to content

Commit

Permalink
fix: skip assets found in db if server config excludes the chain
Browse files Browse the repository at this point in the history
  • Loading branch information
just-a-node committed Oct 8, 2024
1 parent 3e0d3b2 commit 881b5d8
Showing 1 changed file with 6 additions and 0 deletions.
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 881b5d8

Please sign in to comment.