Skip to content

Commit

Permalink
fix jsonrpc not working in ng
Browse files Browse the repository at this point in the history
  • Loading branch information
pau121 committed Sep 16, 2022
1 parent 86094ef commit c84315b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phan-js/rpc/phantasma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class PhantasmaAPI {
params: params,
id: "1",
}),
headers: { "Content-Type": "application/x-www-form-urlencoded" },
headers: { "Content-Type": "application/json" },
});
let resJson = await res.json();
console.log("method", method, resJson);
Expand Down

0 comments on commit c84315b

Please sign in to comment.