diff --git a/README.md b/README.md index 8ca0b37..98fb617 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,8 @@ We use OpenZeppelin for an upgradeable contracts: [https://www.npmjs.com/package Refer to the OpenZeppelin README and `scripts/create-proxy.js` +[OpenZeppelin Step by Step guide](https://forum.openzeppelin.com/t/openzeppelin-upgrades-step-by-step-tutorial-for-hardhat/3580) + For an upgrade example checkout `scripts/upgrade-example.js` diff --git a/hardhat.config.js b/hardhat.config.js index f7c4002..d5d5681 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -66,8 +66,15 @@ module.exports = { hardhat: { chainId: 1337, }, + rinkeby: { + url: "https://rinkeby.infura.io/v3/2e73045db2e84711912f8d0e5968f309", + accounts: [ + process.env.DEPLOY_KEY || + "0xffb4230bdf9b1f1dd48f0bc54e4007436733f225a4f163d4f7e58e620ae329eb", + ], + }, rsk: { - url: "http://10.1.1.136:4444/", + url: "https://rsk-testnet.kosmos.org", accounts: [ process.env.DEPLOY_KEY || "0xffb4230bdf9b1f1dd48f0bc54e4007436733f225a4f163d4f7e58e620ae329eb", diff --git a/scripts/upgrade-example.js b/scripts/upgrade-example.js index 06f2bab..ec630e2 100644 --- a/scripts/upgrade-example.js +++ b/scripts/upgrade-example.js @@ -9,6 +9,9 @@ async function main() { const ContributorV2 = await ethers.getContractFactory("Contributor"); const contributor = await upgrades.upgradeProxy(kredits.Contributor.address, ContributorV2); console.log("Contributor upgraded"); + console.log(`Contirbutor address: ${contributor.address}`); + + await contributor.deployTransaction.wait(); console.log("DONE!"); }