npm install
npm run compile
npm run deploy
npm run console
To Deploy
- Run
npm run chain
- run
npm run deploy
- Get the contract address and paste it in
proxyAddress
on./scripts/prepare-upgrade.js
and./scripts/upgrade.js
- run
npm run prepare && npm run upgrade
to deploy the second "upgrade" contract.
To play with it after deploy
- run
npm run console
const VNFTxV2 = await ethers.getContractFactory("VNFTxV2");
const vnft = await VNFTxV2.attach(proxyAddress)
> This is the new contract that should hold the old contract store.- now
vnft
should have old storage with new functions.