Skip to content

Commit

Permalink
Replacing String() with JSON.stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Sep 24, 2021
1 parent 6460ee1 commit 01be0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/accountState.ts
Expand Up @@ -90,7 +90,7 @@ const getRewardStateFromOgmios = async (addresses: string[]): Promise<OgmiosRetu
if (typeof result === "object" && result.eraMismatch == null) {
resolve(result as DelegationsAndRewardsByAccounts);
}
reject(`Unexpected Ogmios result: ${String(result)}`);
reject(`Unexpected Ogmios result: ${JSON.stringify(result)}`);
}
}, OGMIOS_CONTEXT[0]);
return Object.entries(res).reduce((res: OgmiosRes, [key, rew]) => {
Expand Down

0 comments on commit 01be0ab

Please sign in to comment.