From 307d0c5d095bbc7ff51bb6879b362f6f48293fbf Mon Sep 17 00:00:00 2001 From: kristjanpeterson Date: Tue, 4 Oct 2022 15:52:26 +0300 Subject: [PATCH] Switch rinkeby chain with goerli, because rinkeby is deprecated --- src/config.js | 2 +- utils/functions/refreshOpensea.js | 4 ++-- utils/nftport/revealNFTs.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config.js b/src/config.js index 96ca6ddb..339e220d 100644 --- a/src/config.js +++ b/src/config.js @@ -48,7 +48,7 @@ const CONTRACT_NAME = 'CRYPTOPUNKS'; const CONTRACT_SYMBOL = 'CP'; const CONTRACT_TYPE = 'erc721'; const MINT_TO_ADDRESS = 'YOUR WALLET ADDRESS HERE'; -const CHAIN = 'rinkeby'; +const CHAIN = 'goerli'; const METADATA_UPDATABLE = true; // set to false if you don't want to allow metadata updates after minting const ROYALTY_SHARE = 1000; // Percentage of the token price that goes to the royalty address. 100 bps = 1% const ROYALTY_ADDRESS = "0xd8B808A887326F45B2D0cd999709Aa6264CeF919"; // Address that will receive the royalty diff --git a/utils/functions/refreshOpensea.js b/utils/functions/refreshOpensea.js index d9427ded..9b13b2d2 100644 --- a/utils/functions/refreshOpensea.js +++ b/utils/functions/refreshOpensea.js @@ -17,8 +17,8 @@ if (!START || !END) { } const COLLECTION_BASE_URL = - CHAIN.toLowerCase() === "rinkeby" - ? `https://testnets.opensea.io/assets` + CHAIN.toLowerCase() === "goerli" + ? `https://testnets.opensea.io/assets/goerli` : "https://opensea.io/assets/matic"; async function main() { diff --git a/utils/nftport/revealNFTs.js b/utils/nftport/revealNFTs.js index 76bc8685..c3653f52 100644 --- a/utils/nftport/revealNFTs.js +++ b/utils/nftport/revealNFTs.js @@ -176,8 +176,8 @@ async function reveal() { if (START) { reveal(); } else { - if(CHAIN === 'rinkeby') { - console.log('Rinkeby is not supported for checking ownership of NFTs.'); + if(CHAIN === 'goerli') { + console.log('Goerli is not supported for checking ownership of NFTs.'); process.exit(1); } setInterval(checkOwnedNFTs, INTERVAL);