Block-wallet integration in DAPP issue
Describe the bug Hello, I was trying to integrate your wallet as an option in our app called Cowswap. But it looks like requests are not getting to your wallet. I have block wallet installed on chrome as an extension and I can find the provider for your wallet.
To Reproduce Steps to reproduce the behavior:
- Go to swap.cow.fi on chrome
- Have block-wallet extension installed
- Open dev tools and then console
- Run
const provider = ethereum.providers.find(p => p.isBlockWallet) - Log just
providerto see that its there as it should be - Try to request any provider method
provider.request({ method: 'eth_requestAccounts' })orprovider.request({ method: 'eth_chainId' })
Expected behavior The promise should resolve with requested data such as accounts or chain id, as it works for other injected wallets
Screenshots

As opposed to Tally wallet for example

Desktop (please complete the following information):
- OS: Mac OS Ventura
- Browser Chrome
- Version 110.0.5481.177 (Official Build) (arm64)
hey @nenadV91 , thanks for your submission, we're excited to get our wallet included in Cowswap!
Regarding our provider injection, we use the same approach as MetaMask. You can find our isBlockWallet flag directly in the window.ethereum object:

let me know if this helps,
thanks!
Hey @julianariel thanks for the reply.
One issue we have is that if there is Metamask installed we cannot target provider to Blockwallet.
Another issue is that in case user has Tally wallet installed, there will be an array of providers ethereum.providers, in there we can select the block provider, but it will not be possible to connect to it.