mirror of
https://github.com/dap-ps/discover.git
synced 2025-02-07 06:54:49 +00:00
Update the error message
This commit is contained in:
parent
b7f7201d9a
commit
8e8c164884
@ -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",
|
||||
|
@ -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)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user