Skip to content

Commit

Permalink
Remove type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Oct 12, 2022
1 parent c62112f commit 452bc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/examples/examples/insights/src/insights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const getInsights = async (transaction: Record<string, unknown>) => {
const types = fn.slice(fn.indexOf('(') + 1, fn.indexOf(')')).split(',');

// Decode the data using the ABI utils library.
const decoded: any[] = decode(types, add0x(data.slice(8)));
const decoded = decode(types, add0x(data.slice(8)));

// Return the function name and decoded arguments.
return {
Expand Down

0 comments on commit 452bc93

Please sign in to comment.