Skip to content

Commit

Permalink
fix get tx input
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Feb 8, 2024
1 parent 764d07c commit a20ad44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fees/hopr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ const fetch = async (timestamp: number): Promise<FetchResultFees> => {
}).filter(elem => elem !== undefined) as string[];

const dailyRevenueStayedInChannels = await Promise.all(dailyRevenueStayedInChannelsTXs.map(async(transactionHash) => {
const tx = await provider.getTransaction(transactionHash);
const input = tx!.data;
const decodedInput = iface.decodeFunctionData('execTransactionFromModule', input)
const tx = await provider.getTransaction(transactionHash) as any;
const data = tx!.input;
const decodedInput = iface.decodeFunctionData('execTransactionFromModule', data)
const hexValue = '0x' + decodedInput[2].substring(138,202);
return hexValue;
}));
Expand Down

0 comments on commit a20ad44

Please sign in to comment.