Skip to content

Commit

Permalink
fix: parsing multicall results
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Aug 15, 2024
1 parent e8d9c5a commit 600394d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/handlers/ethHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ async function processCalls(callsArray: PoolMulticall[], chunkSize = 30): Promis
try {
const calls = chunk.map((call) => call.call)
results = await multicall.callStatic.tryAggregate(false, calls)
results[1].map((result, j) => (callsArray[i * chunkSize + j].result = result))
results.map((result, j) => (callsArray[i * chunkSize + j].result = result[1]))
} catch (e) {
logger.error(`Error fetching chunk ${i}: ${e}`)
}
Expand Down

0 comments on commit 600394d

Please sign in to comment.