diff --git a/package.json b/package.json index 40337b5..bf7c5c2 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "web3-utils": "^1.0.0-beta.35", "webpack": "4.28.3", "idb": "4.0.3", - "web3":"1.0.0-beta.34", - "validator":"latest" + "web3": "1.0.0-beta.34", + "validator": "latest" }, "scripts": { "start": "react-scripts start", diff --git a/src/common/blockchain/services/helpers.js b/src/common/blockchain/services/helpers.js index 220f680..c2f6571 100644 --- a/src/common/blockchain/services/helpers.js +++ b/src/common/blockchain/services/helpers.js @@ -2,10 +2,10 @@ export const broadcastContractFn = (contractMethod, account) => { return new Promise((resolve, reject) => { contractMethod({ from: account }) .on('transactionHash', hash => { - resolve(hash); + resolve(hash) }) .on('error', error => { - reject(error.message); - }); - }); -}; + reject(error) + }) + }) +} diff --git a/src/common/clients/endpoints/metadata-client-endpoints.json b/src/common/clients/endpoints/metadata-client-endpoints.json index e465b60..e666579 100644 --- a/src/common/clients/endpoints/metadata-client-endpoints.json +++ b/src/common/clients/endpoints/metadata-client-endpoints.json @@ -1,7 +1,7 @@ { - "UPLOAD": "http://192.168.1.101:4000/metadata", - "UPDATE": "http://192.168.1.101:4000/metadata/update", - "APPROVE": "http://192.168.1.101:4000/metadata/approve/email", - "RETRIEVE_METADATA": "http://192.168.1.101:4000/metadata", - "RETRIEVE_ALL_METADATA": "http://192.168.1.101:4000/metadata/all" + "UPLOAD": "http://192.168.1.175:4000/metadata", + "UPDATE": "http://192.168.1.175:4000/metadata/update", + "APPROVE": "http://192.168.1.175:4000/metadata/approve/email", + "RETRIEVE_METADATA": "http://192.168.1.175:4000/metadata", + "RETRIEVE_ALL_METADATA": "http://192.168.1.175:4000/metadata/all" }