web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Result of contract method .send is hard to type

Open mpetrunic opened this issue 2 years ago • 1 comments

If you wanna pass returned Web3PromiEvent it's hard to preserve typing. Maybe makes sense to provide some utility type for that

mpetrunic avatar Jan 08 '24 13:01 mpetrunic

Also Web3PromiEvent doesn't seem to be exported

mpetrunic avatar Jan 08 '24 13:01 mpetrunic

@mpetrunic , Web3PromiEvent exported in web3-core package https://github.com/web3/web3.js/blob/4.x/packages/web3-core/src/web3_promi_event.ts

avkos avatar Mar 12 '24 00:03 avkos

@mpetrunic , Web3PromiEvent exported in web3-core package https://github.com/web3/web3.js/blob/4.x/packages/web3-core/src/web3_promi_event.ts

Maybe also add here: https://github.com/web3/web3.js/blob/4.x/packages/web3/src/index.ts#L336 ?

mpetrunic avatar Mar 12 '24 09:03 mpetrunic