Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Sep 30, 2024
1 parent 2b541f1 commit e0daafe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/tron-usdt/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const TOPIC0 = 'ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
const dataSource = new DataSourceBuilder()
.setGateway('https://v2.archive.subsquid.io/network/tron-mainnet')
.setHttpApi({url: 'https://rpc.ankr.com/http/tron'})
.setBlockRange({from: 65659767})
.setBlockRange({from: 65677134})
.addLog({
where: {
address: [CONTRACT],
Expand Down
5 changes: 3 additions & 2 deletions tron/tron-data/src/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ export class HttpDataSource {
}
})

for await (let update of queue) {
let update = queue.shift()
while (update) {
yield update
queue.shift()
update = queue.shift()
}

break
Expand Down

0 comments on commit e0daafe

Please sign in to comment.