WIP Commit - Truffle verification
+ https://github.com/rkalis/truffle-plugin-verify
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
const Karma = artifacts.require("Karma");
|
||||
|
||||
module.exports = function (deployer) {
|
||||
deployer.deploy(Karma);
|
||||
};
|
||||
10
migrations/2_deploy_karma.js
Normal file
10
migrations/2_deploy_karma.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const { deployProxy } = require('@openzeppelin/truffle-upgrades');
|
||||
|
||||
const Karma = artifacts.require('Karma');
|
||||
|
||||
module.exports = async function (deployer) {
|
||||
// initializer chooses function to call on initialization
|
||||
// + initialize() defined in karma-ERC20.sol, marked as initializer
|
||||
// https://docs.openzeppelin.com/upgrades-plugins/1.x/api-truffle-upgrades#deploy-proxy
|
||||
await deployProxy(Karma, {deployer, initializer: 'initialize'});
|
||||
};
|
||||
Reference in New Issue
Block a user