Skip to content

Commit

Permalink
Merge pull request #204 from kristjanpeterson1/deprecate-rinkeby-in-f…
Browse files Browse the repository at this point in the history
…avour-of-goerli

Switch rinkeby chain with goerli, because rinkeby is deprecated
  • Loading branch information
codeSTACKr authored Oct 4, 2022
2 parents fc89d99 + 307d0c5 commit dddaae9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions utils/functions/refreshOpensea.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions utils/nftport/revealNFTs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dddaae9

Please sign in to comment.