Skip to content

Commit

Permalink
Merge pull request #265 from open-rpc/fix/rpc-discover-json
Browse files Browse the repository at this point in the history
fix: rpc.discover should return json
  • Loading branch information
shanejonas authored Aug 14, 2019
2 parents 5c466b5 + 96f9828 commit 2ea4b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fetchSchemaFromRpcDiscover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export default async (url: string) => {
if (response.status === 404) {
throw new Error("404: Not Found");
}
return response.text();
const responseJSON = await response.json();
return responseJSON.result;
};

0 comments on commit 2ea4b60

Please sign in to comment.