Skip to content

Commit

Permalink
Merge pull request #420 from ulrikstrid/patch-1
Browse files Browse the repository at this point in the history
Await json before logging response
  • Loading branch information
vishakh authored Jun 5, 2024
2 parents 152de94 + b03ace5 commit e54c48b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chain/tezos/TezosNodeReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export namespace TezosNodeReader {
}
return response;
})
.then(response => {
const json: any = response.json();
.then(async response => {
const json: any = await response.json();
log.debug(`TezosNodeReader.performGetRequest response: ${json} for ${command} on ${server}`);
return json;
});
Expand Down

0 comments on commit e54c48b

Please sign in to comment.