Skip to content

Commit

Permalink
update error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
codeSTACKr committed Apr 28, 2022
1 parent aa71315 commit fc89d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/nftport/retrieveContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const retrieveContract = async () => {
`${basePath}/build/contract/_contract.json`,
JSON.stringify(response, null, 2)
);
if (response.response === "OK" && response.error === null) {
if (response.response === "OK") {
console.log(`Contract ${CONTRACT_NAME} deployed successfully`);
} else {
console.log(`Contract ${CONTRACT_NAME} deployment failed`);
Expand Down

0 comments on commit fc89d99

Please sign in to comment.