Metamask through walletconnect gives Invalid parameters: must provide an Ethereum address

Hi,

I’ve created a website where users can stake their tokens. They have two options to login: metamask or walletconnect. When they use metamask everything is working as expected an a user can approve the tokens for staking.
When they connect through walletconnect and metamask mobile, I get a correct wallet address but when I want to approve the transaction I get an error in my console: Invalid parameters: must provide an Ethereum address

This is the context I get in my component: wallet: “0xc471d778275343c229e4e27d590d79f7ecdf188e”
But when I try to approve, i get this in the console (I also log the approve function and the wallet that is used in the function)

1 Like

Do you find user wallet address under active user data

Moralis.User.current().attributes.accounts[0]