Created
January 31, 2022 17:04
-
-
Save mjtbkh/69b955cedfe2cbd8bcc31954bcab9443 to your computer and use it in GitHub Desktop.
truffle migration to use uups uprgadeable contracts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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