explorer: reverse order on market and event queue pubkeys for serum consume events (#15270)

This commit is contained in:
Josh 2021-02-11 12:00:03 -08:00 committed by GitHub
parent 7d3bede00c
commit 762bab7755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -181,8 +181,8 @@ export function decodeConsumeEvents(ix: TransactionInstruction): ConsumeEvents {
const consumeEvents: ConsumeEvents = {
openOrdersAccounts: ix.keys.slice(0, -2).map((k) => k.pubkey),
market: ix.keys[ix.keys.length - 3].pubkey,
eventQueue: ix.keys[ix.keys.length - 2].pubkey,
market: ix.keys[ix.keys.length - 2].pubkey,
eventQueue: ix.keys[ix.keys.length - 3].pubkey,
programId: ix.programId,
limit: decoded.limit,
};