Added all RPCs from Notion to EthereumProvider (the provider for the WalletConnect). As it appears it was missing requests like eth_getId which resulted in the following error:
Missing return! Looks like responses were discarded just because of the missing return.
Swapped setupWeb3(provider as unknown as Provider) and setState('isConnected', true/false) to set provider first. After setting isConnected to true it triggers several background requests like web3.eth?.getChainId() but we have no provider and thus receive the following error:
eth_getId
which resulted in the following error:return
! Looks like responses were discarded just because of the missingreturn
.setupWeb3(provider as unknown as Provider)
andsetState('isConnected', true/false)
to set provider first. After settingisConnected
to true it triggers several background requests likeweb3.eth?.getChainId()
but we have no provider and thus receive the following error:Swapping fixes the error.