Skip to content

Commit

Permalink
Update client query to get logs (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 authored Oct 5, 2022
1 parent f0c71e2 commit a9c49a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/ipld-eth-client/src/eth-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface Vars {
blockHash: string;
contract?: string;
slot?: string;
addresses?: string[];
}

export class EthClient {
Expand Down
4 changes: 2 additions & 2 deletions packages/ipld-eth-client/src/eth-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a9c49a4

Please sign in to comment.