fix: properly decode account notifications (#11724)

This commit is contained in:
Justin Starry 2020-08-20 12:36:42 +08:00 committed by GitHub
parent b1bc901a66
commit cf941b0eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2832,12 +2832,13 @@ export class Connection {
const {result} = res;
const {value, context} = result;
assert(value.data[1] === 'base64');
sub.callback(
{
executable: value.executable,
owner: new PublicKey(value.owner),
lamports: value.lamports,
data: Buffer.from(value.data, 'base64'),
data: Buffer.from(value.data[0], 'base64'),
},
context,
);