File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const deployContract = async () => {
41
41
try {
42
42
let jsonFile = fs . readFileSync ( `${ basePath } /build/ipfsMetasGeneric/_ipfsMetasResponse.json` ) ;
43
43
let metaData = JSON . parse ( jsonFile ) ;
44
- if ( metaData . response === "OK" && metaData . error === null ) {
44
+ if ( metaData . response === "OK" ) {
45
45
if ( ! PREREVEAL_TOKEN_URI ) {
46
46
PREREVEAL_TOKEN_URI = metaData . metadata_uri ;
47
47
}
@@ -57,7 +57,7 @@ const deployContract = async () => {
57
57
try {
58
58
let jsonFile = fs . readFileSync ( `${ basePath } /build/ipfsMetas/_ipfsMetasResponse.json` ) ;
59
59
let metaData = JSON . parse ( jsonFile ) ;
60
- if ( metaData . response === "OK" && metaData . error === null ) {
60
+ if ( metaData . response === "OK" ) {
61
61
if ( ! BASE_URI ) {
62
62
BASE_URI = metaData . metadata_directory_ipfs_uri ;
63
63
}
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 102
102
`${ basePath } /build/ipfsMetas/_ipfsMetasResponse.json`
103
103
) ;
104
104
let metaData = JSON . parse ( jsonFile ) ;
105
- if ( metaData . response === "OK" && metaData . error === null ) {
105
+ if ( metaData . response === "OK" ) {
106
106
BASE_URI = metaData . metadata_directory_ipfs_uri ;
107
107
} else {
108
108
console . log (
126
126
`${ basePath } /build/ipfsMetasGeneric/_ipfsMetasResponse.json`
127
127
) ;
128
128
let metaData = JSON . parse ( jsonFile ) ;
129
- if ( metaData . response === "OK" && metaData . error === null ) {
129
+ if ( metaData . response === "OK" ) {
130
130
PREREVEAL_TOKEN_URI = metaData . metadata_uri ;
131
131
} else {
132
132
console . log (
You can’t perform that action at this time.
0 commit comments