alephium / alephium-frontend

A monorepo containing all things frontend on Alephium.
Other
11 stars 9 forks source link

[TASK] Upon connecting via WalletConnect, return app version #292

Open nop33 opened 8 months ago

nop33 commented 8 months ago

The feature request is this:

Is there anyway to probe/query and check if a feature (for example, WalletConnect message signing) is supported before requesting signature and having it fail because old version? would be nice if somehow i could test if supported and jsut disable the unsupported options.

It'd be nice if upon connecting with a wallet, the wallet returns its version so that the dApp can determine whether the feature is supported or not.

Let's investigate.

nop33 commented 8 months ago

After a quick research, I see that the SignClient.approve does not allow passing any further data. I guess we could implement a new relay method (something like alph_requestAppVersion) that the dApp needs to call.