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:
parent
b7f7201d9a
commit
8e8c164884
@ -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