Skip to content

Commit

Permalink
fix(script): contract verification
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck committed Mar 27, 2024
1 parent efadaa0 commit 00cdf3d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions configs/networks/polygon.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@ const disabled: Array<String> = [
"ProxToken",
"ERC20Minter",
"MockDao",
"Multicall",
"WETH",
"ProxTokenContract",
"ERC20MinterContract",
// Adapters, Extensions and Factories disabled by default
"NFTCollectionFactory",
"ERC1271ExtensionFactory",
"ExecutorExtensionFactory",
"ERC1155TokenCollectionFactory",
"NFTExtension",
"ERC1271Extension",
"ExecutorExtension",
"ERC1155TokenExtension",
"ERC1155AdapterContract",
"FinancingContract",
"OnboardingContract",
"TributeContract",
"TributeNFTContract",
"LendNFTContract",
];

export const contracts: Array<ContractConfig> = defaultContracts.map((c) => {
Expand Down
4 changes: 2 additions & 2 deletions tasks/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const verify = async (contract: any) => {
const cmd = buildCommand(contract);
log(cmd);
const { stderr, stdout } = await exec(cmd);
if (stderr) {
if (stderr && !stdout) {
error(`${stderr}`);
return Promise.reject({ stderr });
}
Expand Down Expand Up @@ -138,6 +138,6 @@ const main = async () => {
main()
.then(() => log("Verification process completed with success"))
.catch((e) => {
error(e);
error(e.toString());
process.exit(1);
});

0 comments on commit 00cdf3d

Please sign in to comment.