Skip to content

Instantly share code, notes, and snippets.

@mjtbkh
Created January 31, 2022 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjtbkh/69b955cedfe2cbd8bcc31954bcab9443 to your computer and use it in GitHub Desktop.
Save mjtbkh/69b955cedfe2cbd8bcc31954bcab9443 to your computer and use it in GitHub Desktop.
truffle migration to use uups uprgadeable contracts
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);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment