Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bug: Switch between two chain with Burner wallet #28

Open
1 task done
AzimovS opened this issue Jan 19, 2025 · 1 comment
Open
1 task done

bug: Switch between two chain with Burner wallet #28

AzimovS opened this issue Jan 19, 2025 · 1 comment

Comments

@AzimovS
Copy link

AzimovS commented Jan 19, 2025

Is there an existing issue for this?

Which method was used to setup Scaffold-ETH 2 ?

npx create-eth@latest

Current Behavior

I have an app with two chains: Sepolia and Base Sepolia, and I’ve deployed a contract to both chains. I can interact with the contract on both chains through my MetaMask wallet. I also added support for using a burner wallet, but it isn’t working for Base Sepolia. Here’s the error message I’m encountering:

The current chain of the connector (id: 11155111) does not match the connection's chain (id: 84532).
Current Chain ID: 11155111
Expected Chain ID: 84532
Version: @wagmi/core@2.15.2

If I only include Base Sepolia in the targetNetworks, the functionality works as expected. The issue seems to be with supporting both chains simultaneously when using burner wallets.

Expected Behavior

I expect the burner wallet to work on both chains, but please let me know if this behavior is expected.

Steps To Reproduce

Here is the repo: https://github.com/AzimovS/test-two-chains-with-burnerwallet

Anything else?

No response

@technophile-04 technophile-04 transferred this issue from scaffold-eth/scaffold-eth-2 Jan 20, 2025
@technophile-04
Copy link
Collaborator

Just move this issue to this repo. Thanks @AzimovS for reporting 🙌

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants