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
Looks like we don't have an eth_newFilter RPC yet.
A workaround suggested elsewhere was to set polling to true in the provider, ie const provider = new ethers.BrowserProvider((window as any).ethereum, undefined, { polling: true }). However, this exposes a different missing RPC: eth_getLogs.
Thus, I don't seem able to subscribe to events at the mo :)
The text was updated successfully, but these errors were encountered:
The relevant code:
The main bit of interest here is the
contract.on
to subscribe to events from my simple smart contract.Running this in the browser leads to the error:
Looks like we don't have an
eth_newFilter
RPC yet.A workaround suggested elsewhere was to set polling to true in the provider, ie
const provider = new ethers.BrowserProvider((window as any).ethereum, undefined, { polling: true })
. However, this exposes a different missing RPC:eth_getLogs
.Thus, I don't seem able to subscribe to events at the mo :)
The text was updated successfully, but these errors were encountered: