From 91f843c56c36c8321bacd0582e7148e8b5948222 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Mon, 10 Aug 2020 00:54:54 +0800 Subject: [PATCH] fix: base64 decode account data --- web3.js/src/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3.js/src/connection.js b/web3.js/src/connection.js index 14de68dbac..e8daf9c9e6 100644 --- a/web3.js/src/connection.js +++ b/web3.js/src/connection.js @@ -1716,7 +1716,7 @@ export class Connection { let data = resultData; if (!data.program) { - data = bs58.decode(data); + data = new Buffer(data, 'base64'); } value = { @@ -1826,7 +1826,7 @@ export class Connection { let data = resultData; if (!data.program) { - data = bs58.decode(data); + data = new Buffer(data, 'base64'); } return {