Skip to content

add or switch network #1211

@bruxaodev

Description

@bruxaodev

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions