Skip to content

Wallet not defined when using wallet-connect v-2 #1677

@L03TJ3

Description

@L03TJ3

Current Behavior

Just tried out to implement the wallet-connect v2-module.
Connecting works (it seems), but after connecting switch request does not seem to work
image

wallet does not seem to be defined or set properly

  • noticed that the chain id is not correctly parsed and has an additional 0x added to it (might be part of issue?)

Expected Behavior

Wallet should be properly set when connected
Chain-id should not be double prefixed

Steps To Reproduce

Steps to reproduce:

  1. go to https://good-swap-nxlct9qga-gooddollarteam.vercel.app/
  2. open up a gooddollar-wallet at wallet.gooddollar.org
  3. connect with wallet-connect (copy link)
  4. click on gooddapp on the network button (top-nav)
  5. switch to other chain
  6. see log (as shared on screen)

Running it with web3-onboard example gives different issue currently, outside scope of this particular bug

definition of wc-module: https://github.com/GoodDollar/GoodWeb3-Mono/blob/7363f1aae6e08631018526f77da1d948130dcbed/packages/sdk-v2/src/sdk/onboard/react.tsx#L66

type definition: https://github.com/GoodDollar/GoodWeb3-Mono/blob/7363f1aae6e08631018526f77da1d948130dcbed/packages/sdk-v2/src/sdk/onboard/modules/customwalletconnect/types.ts

What package is effected by this issue?

@web3-onboard/core

Is this a build or a runtime issue?

Runtime

Package Version

2.17.0

Node Version

16.17.1

What browsers are you seeing the problem on?

Chrome

Relevant log output

See screen.

Anything else?

web3-onboard/[email protected] as dependency of web3-onboard/[email protected]

Sanity Check

  • If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions