Skip to content

Commit

Permalink
fix: tron event query
Browse files Browse the repository at this point in the history
  • Loading branch information
lok52 committed Jun 26, 2024
1 parent 11f15f5 commit 1753dfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zp-relayer/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,13 @@ export class Pool<N extends Network = Network> {
let fingerprint = null
const MESSAGE_TOPIC = '7d39f8a6bc8929456fba511441be7361aa014ac6f8e21b99990ce9e1c7373536'
do {
const events = await this.network.tronWeb.getEventResult(this.network.pool.address(), {
const events: any[] = await this.network.tronWeb.getEventResult(this.network.pool.address(), {
sinceTimestamp: 0,
eventName: 'Message',
onlyConfirmed: true,
sort: 'block_timestamp',
size: 200,
fingerprint,
})
if (events.length === 0) {
break
Expand Down

0 comments on commit 1753dfd

Please sign in to comment.