Skip to content

Commit

Permalink
show warning message when chain node not found in contest projection
Browse files Browse the repository at this point in the history
  • Loading branch information
rbennettcw committed Oct 22, 2024
1 parent b8bee5a commit afab6c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/model/src/contest/Contests.projection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ async function updateOrCreateWithAlert(
},
});
const url = community?.ChainNode?.private_url;
if (!url)
throw new InvalidState(
`Chain node url not found on namespace ${namespace}`,
);
if (!url) {
log.warn(`Chain node url not found on namespace ${namespace}`);
return;
}

const { ticker, decimals } =
await protocol.contractHelpers.getTokenAttributes(contest_address, url);
Expand Down

0 comments on commit afab6c2

Please sign in to comment.