fix subscription accounts not being processed (#474)

This commit is contained in:
nikhil 2021-10-05 02:55:46 +05:30 committed by GitHub
parent 06248161eb
commit 59873ada64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -9,10 +9,16 @@ export const onChangeAccount =
): ProgramAccountChangeCallback =>
async info => {
const pubkey = pubkeyToString(info.accountId);
const account = info.accountInfo
await process(
{
pubkey,
account: info.accountInfo,
account: {
...account,
// to make sure these accounts get processed by processAuctions, processVaultData, etc
owner: account.owner.toBase58() as unknown as any
},
},
setter,
);