From d9a2d758d301b0180dda5cf0265852c7a6537046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crist=C3=B3v=C3=A3o=20Honorato?= Date: Tue, 27 Aug 2024 15:55:01 +0200 Subject: [PATCH 1/2] feat: do not swallow error result, when calling "verifysourcecode" --- src/artifact/internal/etherscan.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/artifact/internal/etherscan.ts b/src/artifact/internal/etherscan.ts index a341ae5..2c3a98b 100644 --- a/src/artifact/internal/etherscan.ts +++ b/src/artifact/internal/etherscan.ts @@ -76,13 +76,14 @@ export async function verifySourceCode({ }, body: parameters.toString(), }); - const { status, message } = (await response.json()) as { + const { status, message, result } = (await response.json()) as { status: number; message: string; + result: string; }; if (!isOk(status)) { - throw new Error(`Verification Error: ${status} ${message}`); + throw new Error(`Verifying SourceCode: ${message} ${result}`); } return { From 23ccffe8e832f4b1c723eb8de50cc4a78f7a76b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crist=C3=B3v=C3=A3o=20Honorato?= Date: Tue, 27 Aug 2024 16:02:33 +0200 Subject: [PATCH 2/2] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9453c92..78b6f35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gnosis-guild/zodiac-core", - "version": "2.0.0", + "version": "2.0.1", "description": "Zodiac is a composable design philosophy and collection of standards for building DAO ecosystem tooling.", "author": "Auryn Macmillan ", "license": "LGPL-3.0+",