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

Commit a7b5dea

Browse files
nazarhussainbigbizzeavkosnikoulaijdevcs
authoredSep 20, 2022
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 <oleksii.kosynskyi@gmail.com> Co-authored-by: Nazar Hussain <nazarhussain@gmail.com> Co-authored-by: Nikos Iliakis <nikoulai@users.noreply.github.com> * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Muhammad Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> * fix CHANGELOG Co-authored-by: bigbizze <42508203+bigbizze@users.noreply.github.com> Co-authored-by: Oleksii Kosynskyi <oleksii.kosynskyi@gmail.com> Co-authored-by: Nikos Iliakis <nikoulai@users.noreply.github.com> Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com> Co-authored-by: Muhammad Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> Co-authored-by: Alex <alex.luu@mail.utoronto.ca>

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)
This repository has been archived.