UNPKG

truffle-source-verify

Version:

Verify your deployed smart contracts on Etherscan/Blockscout from the Truffle CLI

13 lines (9 loc) 365 B
// Usage: npx truffle exec ./scripts/test_verify.js --network rinkeby const { verify } = require("truffle-source-verify/lib"); async function main() { const idx = process.argv.indexOf("--network"); const network = process.argv[idx + 1]; await verify(["BasicContract"], network); console.log("Done"); } module.exports = (cb) => main().then(cb).catch(cb);