Skip to content

Commit

Permalink
lint forEach remove
Browse files Browse the repository at this point in the history
  • Loading branch information
nischitpra committed Dec 12, 2024
1 parent 6102b5d commit 766fee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/schemas/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export function toContractEventV4Schema(

// backwards compatibility of BigInt(v5) to BigNumber(v4)
const data: Record<string, unknown> = {};
Object.keys(eventV5.args).forEach((key) => {
for (const key of Object.keys(eventV5.args)) {
let value = eventV5.args[key];
if (typeof value === "bigint") {
value = BigNumber.from(value.toString());
}
data[key] = value;
});
}

return {
eventName,
Expand Down

0 comments on commit 766fee5

Please sign in to comment.