Reown fails in iOS if connected network is not Sepolia and tries to switch
@kantagara đang làm issue này rồi.
Từ ngày 9/1/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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]
- Ngôn ngữ chính
- C#
- Star
- 944
- Fork
- 245
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ChainSafe/web3.unity
-
Ethereum Editor Extensions Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
ChainSafe/web3.unity#1303 ·
-
Type: Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ChainSafe/web3.unity#1300 · 2 bình luận ·
-
Type: Documentation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
ChainSafe/web3.unity#1294 ·
-
Pinata Integration Đang mởType: Feature
ChainSafe/web3.unity#1281 · 1 người được giao ·
-
Unity compile error Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
ChainSafe/web3.unity#1279 · 1 bình luận ·
Tất cả issue của ChainSafe/web3.unity
Issue tương tự
-
effort:S P3 refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nightscout/nocturne#1532 ·
-
core dependencies
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
C#/.NET Roslyn LSP Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Suspicious code fragments Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DotNetNext/SqlSugar#1458 ·