From 6b44b58f0e039a6be852cc2f818d148fca43886f Mon Sep 17 00:00:00 2001 From: Mikhail <16622558+mmv08@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:06:49 +0100 Subject: [PATCH] feat(review): add debug logging for parsed options to aid in troubleshooting (#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. --- scripts/review/verifyDeployment.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/review/verifyDeployment.ts b/scripts/review/verifyDeployment.ts index 3af70e72c..d5efb1793 100644 --- a/scripts/review/verifyDeployment.ts +++ b/scripts/review/verifyDeployment.ts @@ -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`); } });