Skip to content

Commit

Permalink
Added result
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Nov 5, 2022
1 parent f41fabc commit e2c1549
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ async function makeRpc(name, ...params){
params,
}),
});
const text = await output.text();
console.log(text);
return { status: 200, response: text };
const obj = await output.json();
return { status: 200, response: obj.result };
}catch(error){
if (error.errno === "ECONNREFUSED") {
return { status: 503, response: "PIVX node was not responsive." };
Expand Down

0 comments on commit e2c1549

Please sign in to comment.