Skip to content

Commit

Permalink
Remove unnecessary chainID check from AddressProvider.SetDefaultChain…
Browse files Browse the repository at this point in the history
…IdAsync
  • Loading branch information
skibitsky committed May 28, 2024
1 parent 0a04d93 commit 2cacf6c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions WalletConnectSharp.Sign/Controllers/AddressProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,6 @@ public async Task SetDefaultChainIdAsync(string chainId)
throw new ArgumentNullException(nameof(chainId));
}

if (!DefaultSession.Namespaces[DefaultNamespace].Chains.Contains(chainId))
{
throw new InvalidOperationException($"Chain {chainId} is not available in the current session");
}

DefaultChainId = chainId;
await SaveDefaults();
}
Expand Down

0 comments on commit 2cacf6c

Please sign in to comment.