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); };
You can clone a snippet to your computer for local editing. Learn more.