You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
web3.js: 1.0.0-beta.50
nodejs: 10.11.0
ethereum node: geth 1.8.22-stable
The text was updated successfully, but these errors were encountered:
Pogooo
changed the title
this.web3.eth.subscribe("logs", ..) types issue
web3.eth.subscribe("logs", ..) types issue
Mar 26, 2019
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: