Skip to content

Instantly share code, notes, and snippets.

@cds-amal
Created May 18, 2022 18:49
Show Gist options
  • Save cds-amal/7c92f3ee52e76cb6477c95487ccd4b96 to your computer and use it in GitHub Desktop.
Save cds-amal/7c92f3ee52e76cb6477c95487ccd4b96 to your computer and use it in GitHub Desktop.

reprod test-from truffle unbox metacoin rm contracts/Migrations.sol rm migrations/*.js cat << EOF > migrations/1_deploy_it.js const ConvertLib = artifacts.require("ConvertLib"); const MetaCoin = artifacts.require("MetaCoin");

module.exports = async function(deployer, network, accounts) { const from = accounts[1]; deployer.deploy(ConvertLib, { from }); deployer.link(ConvertLib, MetaCoin, { from }); deployer.deploy(MetaCoin, { from }); };

EOF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment