Add rinkeby network and extend some logs/docs

This commit is contained in:
bumi 2022-07-06 18:02:42 +02:00
parent e21fb40661
commit 643bd01a78
3 changed files with 13 additions and 1 deletions

View File

@ -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`

View File

@ -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",

View File

@ -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!");
}