Skip to content

Commit

Permalink
feat: add polygonscan to truffle-verify config (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck authored Apr 2, 2024
1 parent 4989223 commit 77293ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const skipContracts = [

const args = process.argv.slice(2);
if (!args || args.length === 0)
throw Error("Missing one of the network names: [goerli, mainnet]");
throw Error("Missing one of the network names: [polygon, mainnet]");

const network = args[0] || "goerli";
const network = args[0] || "polygon";
log(`Selected Network: ${network}`);

const sleep = (msec: number) => {
Expand Down
2 changes: 2 additions & 0 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ module.exports = {
},
},
},
// Supported chains: https://github.com/rkalis/truffle-plugin-verify?tab=readme-ov-file#supported-chains
api_keys: {
etherscan: process.env.ETHERSCAN_API_KEY, // Obtain one at https://etherscan.io/myapikey
polygonscan: process.env.POLYGONSCAN_API_KEY, // Obtain one at https://polygonscan.com/myapikey
},
plugins: ["truffle-plugin-verify"],
};

0 comments on commit 77293ce

Please sign in to comment.