Skip to content

Commit

Permalink
Test AddressProvider.AllAddresses()
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Mar 19, 2024
1 parent 28c54e5 commit 72beae5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/WalletConnectSharp.Sign.Test/SignTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,11 @@ public async Task TestAddressProviderDefaults()
Assert.Equal("eip155:1", address.ChainId);
Assert.Equal("eip155:1", dappClient.AddressProvider.DefaultChainId);
Assert.Equal("eip155", dappClient.AddressProvider.DefaultNamespace);

var allAddresses = dappClient.AddressProvider.AllAddresses("eip155").ToArray();
Assert.Single(allAddresses);
Assert.Equal(testAddress, allAddresses[0].Address);
Assert.Equal("eip155:1", allAddresses[0].ChainId);
}

[Fact, Trait("Category", "integration")]
Expand Down

0 comments on commit 72beae5

Please sign in to comment.