Skip to content

Commit dddaae9

Browse files
authored
Merge pull request #204 from kristjanpeterson1/deprecate-rinkeby-in-favour-of-goerli
Switch rinkeby chain with goerli, because rinkeby is deprecated
2 parents fc89d99 + 307d0c5 commit dddaae9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const CONTRACT_NAME = 'CRYPTOPUNKS';
4848
const CONTRACT_SYMBOL = 'CP';
4949
const CONTRACT_TYPE = 'erc721';
5050
const MINT_TO_ADDRESS = 'YOUR WALLET ADDRESS HERE';
51-
const CHAIN = 'rinkeby';
51+
const CHAIN = 'goerli';
5252
const METADATA_UPDATABLE = true; // set to false if you don't want to allow metadata updates after minting
5353
const ROYALTY_SHARE = 1000; // Percentage of the token price that goes to the royalty address. 100 bps = 1%
5454
const ROYALTY_ADDRESS = "0xd8B808A887326F45B2D0cd999709Aa6264CeF919"; // Address that will receive the royalty

utils/functions/refreshOpensea.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ if (!START || !END) {
1717
}
1818

1919
const COLLECTION_BASE_URL =
20-
CHAIN.toLowerCase() === "rinkeby"
21-
? `https://testnets.opensea.io/assets`
20+
CHAIN.toLowerCase() === "goerli"
21+
? `https://testnets.opensea.io/assets/goerli`
2222
: "https://opensea.io/assets/matic";
2323

2424
async function main() {

utils/nftport/revealNFTs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ async function reveal() {
176176
if (START) {
177177
reveal();
178178
} else {
179-
if(CHAIN === 'rinkeby') {
180-
console.log('Rinkeby is not supported for checking ownership of NFTs.');
179+
if(CHAIN === 'goerli') {
180+
console.log('Goerli is not supported for checking ownership of NFTs.');
181181
process.exit(1);
182182
}
183183
setInterval(checkOwnedNFTs, INTERVAL);

0 commit comments

Comments
 (0)