dethcrypto / dethcrypto/TypeChain

Type the Contract object on Truffle targets

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

Description

With target=truffle, TypeChain generates objects that extend Typechain's definition of Truffle.ContractInstance, which includes `contract: any`.

It would be better to replace `any` with the type generated for the same contract when the target = web3. Doing this manually requires what feels like brittle acrobatics in TypeScript.

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.