Skip to content

Commit

Permalink
Merge pull request #14 from gnosisguild/api-key-error-bubbling
Browse files Browse the repository at this point in the history
Bubbling Error reason when verifying
  • Loading branch information
samepant authored Aug 27, 2024
2 parents 4413ea3 + 23ccffe commit fb98551
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"license": "LGPL-3.0+",
Expand Down
5 changes: 3 additions & 2 deletions src/artifact/internal/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fb98551

Please sign in to comment.