Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit a7b5dea

Browse files
nazarhussainbigbizzeavkosnikoulaijdevcs
authored
Update index.d.ts (#5260)
* Update CHANGELOG.md * Update index.d.ts (#4955) this callback returns an array of event data Co-authored-by: Oleksii Kosynskyi <[email protected]> Co-authored-by: Nazar Hussain <[email protected]> Co-authored-by: Nikos Iliakis <[email protected]> * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Junaid <[email protected]> * Apply suggestions from code review Co-authored-by: Muhammad Altabba <[email protected]> * fix CHANGELOG Co-authored-by: bigbizze <[email protected]> Co-authored-by: Oleksii Kosynskyi <[email protected]> Co-authored-by: Nikos Iliakis <[email protected]> Co-authored-by: Junaid <[email protected]> Co-authored-by: Muhammad Altabba <[email protected]> Co-authored-by: Alex <[email protected]>
1 parent c924148 commit a7b5dea

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -602,5 +602,9 @@ Released with 1.0.0-beta.37 code base.
602602
- Support of `safe` and `finalized` block tags added (#5410)
603603

604604
## [Unreleased]
605+
## [1.8.1]
606+
### Fixed
607+
- Fixed types for getPastEvents (#4955) (#5260)
608+
609+
605610

606-
## [1.8.1]

packages/web3-eth-contract/types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ export class Contract {
6868
getPastEvents(
6969
event: string,
7070
options: PastEventOptions,
71-
callback: (error: Error, event: EventData) => void
71+
callback: (error: Error, events: EventData[]) => void
7272
): Promise<EventData[]>;
7373
getPastEvents(event: string, options: PastEventOptions): Promise<EventData[]>;
7474
getPastEvents(
7575
event: string,
76-
callback: (error: Error, event: EventData) => void
76+
callback: (error: Error, events: EventData[]) => void
7777
): Promise<EventData[]>;
7878
}
7979

0 commit comments

Comments
 (0)