Skip to content
Snippets Groups Projects
Commit e9287975 authored by Renzo Mauro Ontivero's avatar Renzo Mauro Ontivero
Browse files

Optimizando los procesos

parent 9fa5428c
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ module.exports = {
payments.push({name: 'rinkeby', enabled: true});
payments.push({name: 'rsk', enabled: true});
payments.push({name: 'bfa', enabled: false});
payments.push({name: 'celo', enabled: true});
payments.push({name: 'celo', enabled: false});
return res.json(payments);
}
......
......@@ -235,10 +235,14 @@ module.exports = {
web3.eth.sendSignedTransaction(raw, (err, tx_hash) => {
if(err){
return res.json(err.toString());
return res.json({
status: 'error',
error: err.toString()
});
}
return res.json({
return res.json({
status: 'ok',
tx_hash : tx_hash
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment