这是indexloc提供的服务,不要输入任何密码
Skip to content

Server Settings are not saved #1087

@juans-chainsafe

Description

@juans-chainsafe

Describe the bug
When I edit the Custom RPC in ChainSafeServerSettings modal, and reopen that modal, the previous value appears. This causes that I can't login.

Steps
Steps to reproduce the behavior:

  1. Open ChainSafeServerSettings in ChainSafe SDK > Server Settings
  2. Edit Custom RPC value with a valid RPC
  3. Close the modal
  4. Open the modal again

Expected behavior
New value is displayed in Custom RPC input

Console errors
After I try to login:

Web3Exception: HTTP.POST to http://localhost:9680/rpc responded with error: 
ChainSafe.Gaming.Web3.Core.Unity.UnityHttpClient.UnityWebRequestToNetworkResponse (UnityEngine.Networking.UnityWebRequest request) (at <25ba4d2f4c944f0b9954b51b64f53153>:0)
ChainSafe.Gaming.Web3.Core.Unity.UnityHttpClient+<>c__DisplayClass4_0.<PostRaw>b__0 () (at <25ba4d2f4c944f0b9954b51b64f53153>:0)
ChainSafe.Gaming.Evm.Unity.Dispatcher+<>c__DisplayClass12_0`1[T].<EnqueueTask>g__WrappedAction|0 () (at <857c20de9ea546f7a6da445fef65e940>:0)
ChainSafe.Gaming.HyperPlay.HyperPlayProvider.Request[T] (System.String method, System.Object[] parameters) (at <7ec239899d4741aa9d7db066c12b6bc3>:0)
ChainSafe.Gaming.HyperPlay.HyperPlayProvider.Connect () (at <7ec239899d4741aa9d7db066c12b6bc3>:0)
ChainSafe.Gaming.Web3.Evm.Wallet.WalletSigner.WillStartAsync () (at <0dc43d842f264731a43234be13e60b2d>:0)
ChainSafe.Gaming.Web3.Web3.InitializeAsync () (at <0dc43d842f264731a43234be13e60b2d>:0)
ChainSafe.Gaming.Web3.Build.Web3Builder.LaunchAsync () (at <0dc43d842f264731a43234be13e60b2d>:0)
ChainSafe.Gaming.UnityPackage.Connection.IConnectionHandler.Connect (ChainSafe.Gaming.UnityPackage.Connection.ConnectionProvider provider) (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/Connection/IConnectionHandler.cs:42)
ChainSafe.Gaming.UnityPackage.Connection.ConnectionHandler.Restore () (at /Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/Connection/ConnectionHandler.cs:49)
ConnectToWallet.Start () (at Assets/Samples/web3.unity SDK/2.6.0/Web3.Unity Samples/Scripts/Scenes/ConnectToWallet.cs:30)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <e307bbb467104258887a104f6151f183>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Desktop (please complete the following information):

  • Chainsafe SDK version: [dev]
  • Unity Version: [2022.3.26]
  • Operating System: [Mac]

Metadata

Metadata

Assignees

Labels

Priority: P0Added to issues and PRs relating to a critical severity bugs.Type: BugAdded to issues and PRs if they are addressing a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions