Skip to content

Commit

Permalink
Add comment with context on change
Browse files Browse the repository at this point in the history
  • Loading branch information
pcowgill authored Jul 31, 2024
1 parent d4243e3 commit 5683e04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ export const grabLogsFromTransaction = (transaction: Transaction): Log[] => {
if (transaction.logs) return transaction.logs;

if (transaction.receipt?.logs) {
// This mapping doesn't get the result to perfect parity with
// the Once Upon API's format, but it's got all the required parts that
// contextualizations depend on
return transaction.receipt.logs.map((log) => {
return {
address: log.address,
Expand Down

0 comments on commit 5683e04

Please sign in to comment.