Skip to content

Commit

Permalink
Merge pull request #22 from PartyDAO/marcus/fix/verify-party-proxy-logs
Browse files Browse the repository at this point in the history
fix(): fix logging in etherscan module
  • Loading branch information
marcusmolchany authored Apr 12, 2022
2 parents 61016bc + 5a17f28 commit 4396d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ export const verifyProxyContract = async (
throw new Error(`Invalid response from Etherscan API for ${address}`);
}
const { data } = resp;
console.log("etherscan:: data", data);
if (data.status === "1" && data.result) {
console.log(
`Successfully verified proxy contract for ${address}. guid ${data.result}.`
`etherscan:: successfully verified proxy contract for ${address}. guid ${data.result}.`
);
return true;
} else {
console.log("data", data);
throw new Error(`Could not verify proxy contract for ${address}`);
}
} catch (error) {
Expand Down

0 comments on commit 4396d11

Please sign in to comment.