From a88ad1ddce857719a93ada3e532dc9210569f59e Mon Sep 17 00:00:00 2001 From: Danny Delott Date: Fri, 30 Aug 2024 14:02:47 -0700 Subject: [PATCH] Fix bug causing event args to not be sent in eth_getLogs --- packages/evm-client-viem/src/contract/createReadContract.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/evm-client-viem/src/contract/createReadContract.ts b/packages/evm-client-viem/src/contract/createReadContract.ts index ba6831a2..7cc72585 100644 --- a/packages/evm-client-viem/src/contract/createReadContract.ts +++ b/packages/evm-client-viem/src/contract/createReadContract.ts @@ -112,6 +112,7 @@ export function createReadContract({ eventName: eventName as string, fromBlock: options?.fromBlock ?? 'earliest', toBlock: options?.toBlock ?? 'latest', + args: options?.filter, }); return events.map(({ args, blockNumber, data, transactionHash }) => {