Skip to content

Commit

Permalink
Merge pull request #13 from usherlabs/bug-fix/fix_rooch_query_to_incl…
Browse files Browse the repository at this point in the history
…ude_eventSeq0

Rooch Edge Case
  • Loading branch information
rsoury authored Jan 13, 2025
2 parents 3b51a91 + 8a97180 commit 04363b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion orchestrator/src/indexer/rooch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,14 @@ export default class RoochIndexer extends Indexer {
id: 101,
jsonrpc: "2.0",
method: "rooch_getEventsByEventHandle",
params: [`${this.oracleAddress}::oracles::RequestAdded`, cursor, `${env.batchSize}`, false, { decode: true }],
params: [
`${this.oracleAddress}::oracles::RequestAdded`,
cursor === 0 ? null : cursor,

`${env.batchSize}`,
false,
{ decode: true },
],
},
{
headers: {
Expand Down

0 comments on commit 04363b4

Please sign in to comment.