Reown fails in iOS if connected network is not Sepolia and tries to switch
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
If the network that you have in Metamask is not Sepolia, and you connect with Reown, it will try to switch to Sepolia but it fails
Steps
Steps to reproduce the behavior:
- Build in iOS
- Connect with Reown
- Connect with Metamask
- Sign message in Metamask
- Go back to Unity app
- It will switch you back to Metamask
- Nothing happens in Metamask
- Go back to Unity app
Expected behavior
Network is switched to Sepolia
Console errors
Web3Exception: HTTP.POST to ‘https://rpc.walletconnect.com/v1?chainId=eip155:8333&projectId=f4bff60eb260841f46b1c77588cd8acb’ responded with error: {“status”:“FAILED”,“reasons”:[{“field”:“chainId”,“description”:“We don’t support the chainId you provided: eip155:8333. See the list of supported chains here: https://docs.walletconnect.com/cloud/blockchain-api#supported-chains”}]}
at ChainSafe.Gaming.Web3.Core.Unity.UnityHttpClient.UnityWebRequestToNetworkResponse (UnityEngine.Networking.UnityWebRequest request) [0x00000] in <00000000000000000000000000000000>:0
at ChainSafe.Gaming.Web3.Core.Unity.UnityHttpClient+<>c__DisplayClass3_0.<PostRaw>b__0 () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
at IEnumeratorAwaitExtensions+InstructionWrappers+<ReturnSelf>d__2`1[T].MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---
Mobile (please complete the following information):
- Chainsafe SDK version: [dev]
- Platform: [iOS]
- Device Type: [Real device]
- OS Version: [latest]
- 主要语言
- C#
- 星标
- 944
- 派生
- 245
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ChainSafe/web3.unity 的其他 Issue
-
难度 5/5 一周以上 新手友好度 20/100
ChainSafe/web3.unity#1303 ·
-
Type: Bug
难度 4/5 3-5 天 新手友好度 35/100
ChainSafe/web3.unity#1300 · 2 条评论 ·
-
Type: Documentation
难度 5/5 一周以上 新手友好度 30/100
ChainSafe/web3.unity#1294 ·
-
Pinata Integration可能重新可做 @rob1997 于 578 天前认领,目前没有进行中的 PR。 未关闭Type: Feature
ChainSafe/web3.unity#1281 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 30/100
ChainSafe/web3.unity#1279 · 1 条评论 ·
查看 ChainSafe/web3.unity 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
area:re1 bounty help wanted needs-game
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
StackExchange/StackExchange.Redis#3274 ·
维护者通常 1 天内回复
-
affected/v17 affected/v18 area/frontend type/bug
难度 2/5 1-3 小时 新手友好度 82/100
umbraco/Umbraco-CMS#24186 ·
维护者通常 2 天内回复