Skip to content

Commit

Permalink
feat(review): add debug logging for parsed options to aid in troubles…
Browse files Browse the repository at this point in the history
…hooting (#879)

This pull request includes a small change to the
`scripts/review/verifyDeployment.ts` file. The change adds debug
statements to log parsed options and the response from the Chainlist API
in case of an error.

Debugging improvements:

*
[`scripts/review/verifyDeployment.ts`](diffhunk://#diff-c6fe5e164bc544808b78082285194a6397322cf64b752ab7600e85fd734fcff3R46-R51):
Added debug statements to log parsed options and the response from the
Chainlist API.
  • Loading branch information
mmv08 authored Nov 21, 2024
1 parent df7e1c0 commit 6b44b58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/review/verifyDeployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ async function main() {
}
};

debug('Parsed options:');
debug(options);

await fetch(`https://chainlist.org/chain/${options.chainId}`).then((response) => {
if (!response.ok) {
debug(response);
throw new Error(`chain is not registered on Chainlist`);
}
});
Expand Down

0 comments on commit 6b44b58

Please sign in to comment.