10 lines
316 B
JavaScript
10 lines
316 B
JavaScript
|
const { upgradeProxy } = require('@openzeppelin/truffle-upgrades');
|
||
|
|
||
|
const Karma = artifacts.require('Karma');
|
||
|
const KarmaV2 = artifacts.require('KarmaV2');
|
||
|
|
||
|
module.exports = async function (deployer) {
|
||
|
const existing = await Karma.deployed();
|
||
|
await upgradeProxy(existing.address, KarmaV2, { deployer });
|
||
|
};
|