ts client: fix reading perp event queue

This commit is contained in:
Christian Kamm 2022-09-26 15:58:26 +02:00
parent 15d0a98c94
commit 15d3a0cdfa
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ export class PerpEventQueue {
this.head = header.head;
this.count = header.count;
this.seqNum = header.seqNum;
this.rawEvents = buf.slice(this.head, this.count).map((event) => {
this.rawEvents = buf.map((event) => {
if (event.eventType === PerpEventQueue.FILL_EVENT_TYPE) {
return (client.program as any)._coder.types.typeLayouts
.get('FillEvent')