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

@ -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)
})
})
}

View File

@ -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"
}