1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-02-12 01:06:49 +00:00

Update the error message

This commit is contained in:
Lyubomir Kiprov 2019-06-04 16:43:43 +03:00
parent b7f7201d9a
commit 8e8c164884
3 changed files with 12 additions and 12 deletions

View File

@ -34,8 +34,8 @@
"web3-utils": "^1.0.0-beta.35", "web3-utils": "^1.0.0-beta.35",
"webpack": "4.28.3", "webpack": "4.28.3",
"idb": "4.0.3", "idb": "4.0.3",
"web3":"1.0.0-beta.34", "web3": "1.0.0-beta.34",
"validator":"latest" "validator": "latest"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",

View File

@ -2,10 +2,10 @@ export const broadcastContractFn = (contractMethod, account) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
contractMethod({ from: account }) contractMethod({ from: account })
.on('transactionHash', hash => { .on('transactionHash', hash => {
resolve(hash); resolve(hash)
}) })
.on('error', error => { .on('error', error => {
reject(error.message); reject(error)
}); })
}); })
}; }

View File

@ -1,7 +1,7 @@
{ {
"UPLOAD": "http://192.168.1.101:4000/metadata", "UPLOAD": "http://192.168.1.175:4000/metadata",
"UPDATE": "http://192.168.1.101:4000/metadata/update", "UPDATE": "http://192.168.1.175:4000/metadata/update",
"APPROVE": "http://192.168.1.101:4000/metadata/approve/email", "APPROVE": "http://192.168.1.175:4000/metadata/approve/email",
"RETRIEVE_METADATA": "http://192.168.1.101:4000/metadata", "RETRIEVE_METADATA": "http://192.168.1.175:4000/metadata",
"RETRIEVE_ALL_METADATA": "http://192.168.1.101:4000/metadata/all" "RETRIEVE_ALL_METADATA": "http://192.168.1.175:4000/metadata/all"
} }