Closed gigajuwels closed 5 months ago
There is another issue that can break session requests.
Engine now uses OrderedKeys field when making requests: https://github.com/WalletConnect/WalletConnectSharp/blob/feat/default-session-saving/WalletConnectSharp.Sign/Engine.cs#L687
OrderedKeys
The problem I'm sometimes facing is that RequiredNamespace object can have one Key, but no OrderedKeys. Perhaps there is a scenario when dictionary is assigned directly, bypassing the Add method of RequiredNamespaces.
RequiredNamespace
Key
Add
RequiredNamespaces
@gigajuwels the TestAddressProviderDefaultsSaving test fails
TestAddressProviderDefaultsSaving
Well done, @gigajuwels!
There is another issue that can break session requests.
Engine now uses
OrderedKeys
field when making requests: https://github.com/WalletConnect/WalletConnectSharp/blob/feat/default-session-saving/WalletConnectSharp.Sign/Engine.cs#L687The problem I'm sometimes facing is that
RequiredNamespace
object can have oneKey
, but noOrderedKeys
. Perhaps there is a scenario when dictionary is assigned directly, bypassing theAdd
method ofRequiredNamespaces
.