Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch rinkeby chain with goerli, because rinkeby is deprecated #204

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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