Describe the bug
Race condition arises when the first request made by a Websocket provider is a subscription to an event which includes a request for historical logs.
It's been fixed in web3.js but it seems that the same bug still exists in caver-js.
Describe the bug Race condition arises when the first request made by a Websocket provider is a subscription to an event which includes a request for historical logs. It's been fixed in
web3.js
but it seems that the same bug still exists incaver-js
.How to reproduce Create
Caver
usingWebsocketProvider
and request event subscription for the first request.If I call something like
await caver.klay.getAccounts()
before the subscription, it works fine.Expected behavior All events of the contract from block 0 should be retrieved.
Environment (please complete the following information)