Skip to content

Commit

Permalink
Update the ts library
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Mar 14, 2024
1 parent d4d1371 commit 91ef04e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ export class OCR2Feed {

public onRound(feed: PublicKey, callback: (round: Round) => void): number {
return this.provider.connection.onLogs(feed, (event, ctx) => {
this._parser.parseLogs(event.logs, (log) => {

for (const log of this._parser.parseLogs(event.logs)) {
if (log.name != "NewTransmission") {
return;
}
let parsed = OCR2Feed.parseLog(log);
parsed.feed = feed;
parsed.slot = ctx.slot;
callback(parsed);
});
}
});
}

Expand Down

0 comments on commit 91ef04e

Please sign in to comment.