Skip to content

Commit

Permalink
Update index.d.ts (#4955)
Browse files Browse the repository at this point in the history
this callback returns an array of event data

Co-authored-by: Oleksii Kosynskyi <oleksii.kosynskyi@gmail.com>
Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
Co-authored-by: Nikos Iliakis <nikoulai@users.noreply.github.com>
  • Loading branch information
4 people authored Jul 18, 2022
1 parent eb15b1b commit 32fa296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web3-eth-contract/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ export class Contract {
getPastEvents(
event: string,
options: PastEventOptions,
callback: (error: Error, event: EventData) => void
callback: (error: Error, event: EventData[]) => void
): Promise<EventData[]>;
getPastEvents(event: string, options: PastEventOptions): Promise<EventData[]>;
getPastEvents(
event: string,
callback: (error: Error, event: EventData) => void
callback: (error: Error, event: EventData[]) => void
): Promise<EventData[]>;
}

Expand Down

0 comments on commit 32fa296

Please sign in to comment.