File tree 6 files changed +10
-13
lines changed
6 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const CONTRACT_NAME = 'CRYPTOPUNKS';
48
48
const CONTRACT_SYMBOL = 'CP' ;
49
49
const CONTRACT_TYPE = 'erc721' ;
50
50
const MINT_TO_ADDRESS = 'YOUR WALLET ADDRESS HERE' ;
51
- const CHAIN = 'rinkeby ' ;
51
+ const CHAIN = 'goerli ' ;
52
52
const METADATA_UPDATABLE = true ; // set to false if you don't want to allow metadata updates after minting
53
53
const ROYALTY_SHARE = 1000 ; // Percentage of the token price that goes to the royalty address. 100 bps = 1%
54
54
const ROYALTY_ADDRESS = "0xd8B808A887326F45B2D0cd999709Aa6264CeF919" ; // Address that will receive the royalty
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ if (!START || !END) {
17
17
}
18
18
19
19
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 `
22
22
: "https://opensea.io/assets/matic" ;
23
23
24
24
async function main ( ) {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ async function main() {
37
37
? txnData . mintData . response
38
38
: txnData . updateData . response ;
39
39
const err =
40
- dir === "minted" ? txnData . mintData . error : txnData . updateData . error ;
40
+ ( dir === "minted" ? txnData . mintData . error : txnData . updateData . error ) || null ;
41
41
const verified =
42
42
dir === "minted"
43
43
? txnData . mintData . transaction_verified
Original file line number Diff line number Diff line change @@ -61,10 +61,7 @@ async function main() {
61
61
const mintedFile = fs . readFileSync ( mintFile ) ;
62
62
if ( mintedFile . length > 0 ) {
63
63
const mintedMeta = JSON . parse ( mintedFile ) ;
64
- if (
65
- mintedMeta . mintData . response !== "OK" ||
66
- mintedMeta . mintData . error !== null
67
- ) {
64
+ if ( mintedMeta . mintData . response !== "OK" ) {
68
65
console . log (
69
66
`Response: ${ mintedMeta . mintData . response } ` ,
70
67
`Error: ${ mintedMeta . mintData . error } ` ,
@@ -128,7 +125,7 @@ async function main() {
128
125
JSON . stringify ( combinedData , null , 2 )
129
126
) ;
130
127
131
- if ( mintData . response !== "OK" || mintData . error !== null ) {
128
+ if ( mintData . response !== "OK" ) {
132
129
console . log (
133
130
`Minting ${ meta . name } failed :(` ,
134
131
`Response: ${ mintData . response } ` ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const retrieveContract = async () => {
27
27
`${ basePath } /build/contract/_contract.json` ,
28
28
JSON . stringify ( response , null , 2 )
29
29
) ;
30
- if ( response . response === "OK" && response . error === null ) {
30
+ if ( response . response === "OK" ) {
31
31
console . log ( `Contract ${ CONTRACT_NAME } deployed successfully` ) ;
32
32
} else {
33
33
console . log ( `Contract ${ CONTRACT_NAME } deployment failed` ) ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ async function reveal() {
84
84
const revealedFile = fs . readFileSync ( revealedFilePath ) ;
85
85
if ( revealedFile . length > 0 ) {
86
86
const revealedFileJson = JSON . parse ( revealedFile ) ;
87
- if ( revealedFileJson . updateData . response !== "OK" || revealedFileJson . updateData . error !== null ) {
87
+ if ( revealedFileJson . updateData . response !== "OK" ) {
88
88
throw "not revealed" ;
89
89
} else if ( revealedFileJson . updateData . transaction_verified === true ) {
90
90
console . log ( `${ meta . name } already revealed.` ) ;
@@ -176,8 +176,8 @@ async function reveal() {
176
176
if ( START ) {
177
177
reveal ( ) ;
178
178
} 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.' ) ;
181
181
process . exit ( 1 ) ;
182
182
}
183
183
setInterval ( checkOwnedNFTs , INTERVAL ) ;
You can’t perform that action at this time.
0 commit comments