Skip to content

Commit

Permalink
fix: base64 decode account data
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Aug 9, 2020
1 parent 739f935 commit f7aba02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ export class Connection {

let data = resultData;
if (!data.program) {
data = bs58.decode(data);
data = new Buffer(data, 'base64');
}

value = {
Expand Down Expand Up @@ -1826,7 +1826,7 @@ export class Connection {

let data = resultData;
if (!data.program) {
data = bs58.decode(data);
data = new Buffer(data, 'base64');
}

return {
Expand Down

0 comments on commit f7aba02

Please sign in to comment.