dethcrypto / dethcrypto/TypeChain

Specify EventData type returned from getPastEvents

Open
#767 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.8k
Forks
376
PR merge metrics
No merged PRs in 30d

Description

At the end of each contract's type definition, 'getPastEvents()' is defined, taking the event name as a string parameter, returning an array of EventData[] which should be more specifically typed to connect the specific type of EventData to the name of the event.

The event interfaces exported near the top of a contract file are also not related to the EventData interface.

#765 is related to an attempt to work around this and can have other benefits, but fixing this directly is also desirable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.