near-wallet icon indicating copy to clipboard operation
near-wallet copied to clipboard

Web redirects from apps does not set up the correct wallet and has no ability to switch the wallet

Open alexauroradev opened this issue 3 years ago • 2 comments

Problem Web redirects from apps does not set up the correct wallet and has no ability to switch the wallet

Expected Behavior The redirect should set up the correct wallet AND user should be able to switch the signing wallet.

Steps to reproduce

  1. The user has multiple wallets, the last wallet used is wallet_1
  2. He logs in the app with wallet_1 (for example, https://ecosystem.pixeldapps.co/cryptoheroes)
  3. He switches in the wallet interface to the wallet_2
  4. During the interaction with the app and when it is requested to sign a transaction, the user is redirected to the wallet
  5. The wallet displays as an active wallet wallet_2 instead of wallet_1 with inability to switch the wallet

Here's the screenshot: Screenshot 2022-02-01 at 15 49 47

The URL is the following: https://wallet.near.org/sign?transactions=CAAAAGFzMi5uZWFyAI1rFJM6rTTaPFh4BKcB%2Bw7DGa6KT4fiFa3IODd%2BaiJYVml%2B6g01AAAPAAAAcGl4ZWx0b2tlbi5uZWFySiTUi1PV9b7fCAsDShAAi8hurggsGIJTgrP0QDO40sgBAAAAAgsAAABjaF9idXlfaXRlbVAAAAB7InRva2VuX2lkIjoiMTIzNjk4Iiwib3duZXIiOiJyb3pib3IubmVhciIsImJ1eWVyIjoiYXMyLm5lYXIiLCJwcmljZSI6IjEwMDAwMDAifQBgt5hsiAAAAQAAAAAAAAAAAAAAAAAAAA%3D%3D&referrer=Pixelpets+Dapp%3A+Pixelpets+Dapp&callbackUrl=https%3A%2F%2Fecosystem.pixeldapps.co%2Fcallback%3Fpage%3Ditem_bought

alexauroradev avatar Feb 01 '22 14:02 alexauroradev

+1 Some dapps like rainbowbridge expect the signer to be the connected account (wallet_1)

paouvrard avatar Feb 01 '22 14:02 paouvrard

@esaminu is working on this here: https://github.com/near/near-wallet/issues/2402 :)

Patrick1904 avatar Feb 01 '22 16:02 Patrick1904