Snippets

Mojtaba Khodami truffle migration to use uups upgradeable contracts

Created by Mojtaba Khodami
1
2
3
4
5
6
7
const { deployProxy } = require('@openzeppelin/truffle-upgrades');
const SimpleStorageV1 = artifacts.require("SimpleStorageV1");

module.exports = async function(deployer) {
    const instance = await deployProxy(SimpleStorageV1, [], { deployer });
    console.log('Deployed', instance.address);
};

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.