-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web3.eth.subscribe("logs", ..) types issue #2583
Labels
Types
Incorrect or missing types
Comments
Pogooo
changed the title
this.web3.eth.subscribe("logs", ..) types issue
web3.eth.subscribe("logs", ..) types issue
Mar 26, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I cannot subscribe to logs, because of typescript errors.
If I comment out the web3-eth/types' index.d.ts:58-60 rows, it works. Should I set some attribute in the tslint.json?
Also I cannot pass array for the address, but the documentation says It's possible.
Expected behavior
And I've got the event about the specified addresses.
Actual behavior
cannot pass array to the address parameter, only string
also tslint prints: "Argument of type "'logs'" is not assignable to parameter of type '"pendigTransactions'"."
Error Logs
"Argument of type "'logs'" is not assignable to parameter of type '"pendigTransactions'"."
Type 'string[]' is not assignable to type 'string'
Versions
The text was updated successfully, but these errors were encountered: