Deploy upgradeable Karma contract to ropsten testnet

This commit is contained in:
2021-05-05 23:06:46 -04:00
parent a9784bb02c
commit 4a93042dd7
10 changed files with 23948 additions and 536 deletions

View File

@@ -0,0 +1,9 @@
const { upgradeProxy } = require('@openzeppelin/truffle-upgrades');
const KarmaV2 = artifacts.require('KarmaV2');
const KarmaV3 = artifacts.require('KarmaV3');
module.exports = async function (deployer) {
const existing = await KarmaV2.deployed();
await upgradeProxy(existing.address, KarmaV3, { deployer });
};