Skip to content

Commit

Permalink
refactor: re-extract Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Oct 20, 2020
1 parent 2c7ced7 commit 7c2accb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/account.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ interface ReceiptLogWithFailure {
}

function parseJsonFromRawResponse (response: Uint8Array): any {
return JSON.parse(response.toString());
return JSON.parse(Buffer.from(response).toString());
}

/**
Expand Down

0 comments on commit 7c2accb

Please sign in to comment.