Created
March 16, 2022 22:26
-
-
Save lukecurtis93/8ebb03d51e536819e38ebc756d5842bb to your computer and use it in GitHub Desktop.
Upgrading a contract
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 { ethers, upgrades } = require('hardhat'); | |
async function main () { | |
const MyToken2 = await ethers.getContractFactory('MyToken2'); | |
await upgrades.upgradeProxy('THECONTRACTADDRESS', MyToken2); | |
console.log('Contract upgraded'); | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment