Skip to content

Commit ce24447

Browse files
committed
2 parents c77336a + dddaae9 commit ce24447

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
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/checkTxns.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function main() {
3737
? txnData.mintData.response
3838
: txnData.updateData.response;
3939
const err =
40-
dir === "minted" ? txnData.mintData.error : txnData.updateData.error;
40+
(dir === "minted" ? txnData.mintData.error : txnData.updateData.error) || null;
4141
const verified =
4242
dir === "minted"
4343
? txnData.mintData.transaction_verified

utils/nftport/mint.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ async function main() {
6161
const mintedFile = fs.readFileSync(mintFile);
6262
if (mintedFile.length > 0) {
6363
const mintedMeta = JSON.parse(mintedFile);
64-
if (
65-
mintedMeta.mintData.response !== "OK" ||
66-
mintedMeta.mintData.error !== null
67-
) {
64+
if (mintedMeta.mintData.response !== "OK") {
6865
console.log(
6966
`Response: ${mintedMeta.mintData.response}`,
7067
`Error: ${mintedMeta.mintData.error}`,
@@ -128,7 +125,7 @@ async function main() {
128125
JSON.stringify(combinedData, null, 2)
129126
);
130127

131-
if (mintData.response !== "OK" || mintData.error !== null) {
128+
if (mintData.response !== "OK") {
132129
console.log(
133130
`Minting ${meta.name} failed :(`,
134131
`Response: ${mintData.response}`,

utils/nftport/retrieveContract.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const retrieveContract = async () => {
2727
`${basePath}/build/contract/_contract.json`,
2828
JSON.stringify(response, null, 2)
2929
);
30-
if (response.response === "OK" && response.error === null) {
30+
if (response.response === "OK") {
3131
console.log(`Contract ${CONTRACT_NAME} deployed successfully`);
3232
} else {
3333
console.log(`Contract ${CONTRACT_NAME} deployment failed`);

utils/nftport/revealNFTs.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function reveal() {
8484
const revealedFile = fs.readFileSync(revealedFilePath);
8585
if (revealedFile.length > 0) {
8686
const revealedFileJson = JSON.parse(revealedFile);
87-
if (revealedFileJson.updateData.response !== "OK" || revealedFileJson.updateData.error !== null) {
87+
if (revealedFileJson.updateData.response !== "OK") {
8888
throw "not revealed";
8989
} else if(revealedFileJson.updateData.transaction_verified === true) {
9090
console.log(`${meta.name} already revealed.`);
@@ -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)