Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

add or switch network #1211

Open
bruxaodev opened this issue Jan 18, 2025 · 1 comment
Open

add or switch network #1211

bruxaodev opened this issue Jan 18, 2025 · 1 comment

Comments

@bruxaodev
Copy link

Describe the bug

I'm having this problem when changing the network, it even adds the network if it doesn't exist, but it doesn't make the change.
Image

If I manually select this chain added by the code and perform any interaction with it I receive an error
Image

Add logs

{ "message": "\"There was an error adding the chain. Error: could not coalesce error (error={ \\\"code\\\": -32603, \\\"data\\\": { \\\"cause\\\": { \\\"message\\\": \\\"endowment:permitted-chains error: Received unrecognized chainId: \\\\\\\"0x7a69\\\\\\\". Please try adding the network first via wallet_addEthereumChain.\\\", \\\"stack\\\": \\\"Error: endowment:permitted-chains error: Received unrecognized chainId: \\\\\\\"0x7a69\\\\\\\". Please try adding the network first via wallet_addEthereumChain.\\\\n at chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/common-4.js:1:419383\\\\n at Array.forEach (<anonymous>)\\\\n at chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/common-4.js:1:419329\\\\n at Object.validator (chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/common-4.js:1:419532)\\\\n at j.validateCaveat (chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/common-2.js:1:10699)\\\\n at chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/common-2.js:1:9684\\\\n at Array.forEach (<anonymous>)\\\\n at j.validatePermission (chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/common-2.js:1:9660)\\\\n at j.a (chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/common-2.js:1:16969)\\\\n at j.grantPermissionsIncremental (chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/common-2.js:1:8847)\\\\n at grantPermittedChainsPermissionIncremental (chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/background-0.js:1:242346)\\\\n at chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/background-0.js:1:13698\\\\n at implementation (chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/background-0.js:1:11833)\\\\n at async chrome-extension://cppchceidjfflgjkmemmehjnaedmfkjh/background-7.js:1:172980\\\" } }, \\\"message\\\": \\\"endowment:permitted-chains error: Received unrecognized chainId: \\\\\\\"0x7a69\\\\\\\". Please try adding the network first via wallet_addEthereumChain.\\\" }, payload={ \\\"id\\\": 326, \\\"jsonrpc\\\": \\\"2.0\\\", \\\"method\\\": \\\"wallet_addEthereumChain\\\", \\\"params\\\": [ { \\\"chainId\\\": \\\"0x89\\\", \\\"chainName\\\": \\\"Polygon\\\", \\\"nativeCurrency\\\": { \\\"decimals\\\": 18, \\\"name\\\": \\\"MATIC\\\", \\\"symbol\\\": \\\"MATIC\\\" }, \\\"rpcUrls\\\": [ \\\"https://polygon-rpc.com\\\" ] } ] }, code=UNKNOWN_ERROR, version=6.13.4)\"" }

Steps to reproduce

1- send post

Expected behavior

add or switch network

Screenshots

No response

hyperplay Version

Latest Stable

System Information

  • OS windows 11
  • hyperplay Version 0.22.5:

Additional information

No response

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

No branches or pull requests

2 participants
@bruxaodev and others