From a9c49a4236c2fc5099f846100c94d47cd03f75c1 Mon Sep 17 00:00:00 2001 From: prathamesh0 <42446521+prathamesh0@users.noreply.github.com> Date: Wed, 5 Oct 2022 15:14:42 +0530 Subject: [PATCH] Update client query to get logs (#368) --- packages/ipld-eth-client/src/eth-client.ts | 1 + packages/ipld-eth-client/src/eth-queries.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ipld-eth-client/src/eth-client.ts b/packages/ipld-eth-client/src/eth-client.ts index 1053d855..aa843fbc 100644 --- a/packages/ipld-eth-client/src/eth-client.ts +++ b/packages/ipld-eth-client/src/eth-client.ts @@ -19,6 +19,7 @@ interface Vars { blockHash: string; contract?: string; slot?: string; + addresses?: string[]; } export class EthClient { diff --git a/packages/ipld-eth-client/src/eth-queries.ts b/packages/ipld-eth-client/src/eth-queries.ts index af4e99e6..c612ef3b 100644 --- a/packages/ipld-eth-client/src/eth-queries.ts +++ b/packages/ipld-eth-client/src/eth-queries.ts @@ -15,8 +15,8 @@ query getStorageAt($blockHash: Bytes32!, $contract: Address!, $slot: Bytes32!) { `; export const getLogs = gql` -query getLogs($blockHash: Bytes32!, $contract: Address) { - getLogs(blockHash: $blockHash, contract: $contract) { +query getLogs($blockHash: Bytes32!, $addresses: [Address!]) { + getLogs(blockHash: $blockHash, addresses: $addresses) { account { address }