Open nop33 opened 7 months ago
I have not managed to reproduce this. I tried using @alephium/web3-react
and initialize connectors with <AlephiumWalletProvider network="testnet">
and I could connect to both wallets. When I tried to use <AlephiumWalletProvider network="devnet">
, then I got this issue: https://github.com/alephium/alephium-frontend/issues/325
As the user suggested, I also tried to use plain @alephium/walletconnect-provider
without using @alephium/web3-react
. I managed to get the URI and I could paste it on the desktop wallet and connect to the dApp successfully and even sign a message:
import { WalletConnectProvider } from "@alephium/walletconnect-provider"
const connect = async () => {
const wcProvider = await WalletConnectProvider.init({
projectId: "6e2562e43678dd68a9070a62b6d52207",
networkId: "testnet",
onDisconnected: () => Promise.resolve(),
})
wcProvider.on("displayUri", (uri) => console.log(uri))
await wcProvider.connect()
if (wcProvider.account)
wcProvider.signMessage({
signerAddress: wcProvider.account.address,
message: "Hello there!",
messageHasher: "alephium",
})
}
connect()
.User reports:
The user is using Vue so they can't use our
@alephium/web3-react
package.