Skip to content

Commit

Permalink
Merge pull request #129 from WalletConnect/release/2.1.1
Browse files Browse the repository at this point in the history
Release 2.1.1
  • Loading branch information
skibitsky authored Oct 16, 2023
2 parents 86a0343 + 25aa38a commit ab63e99
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DefaultVersion>2.1.0</DefaultVersion>
<DefaultVersion>2.1.1</DefaultVersion>
<DefaultTargetFrameworks>net6.0;netcoreapp3.1;netstandard2.1;</DefaultTargetFrameworks>
</PropertyGroup>
<PropertyGroup Label="C#">
Expand Down
16 changes: 1 addition & 15 deletions WalletConnectSharp.Core/Controllers/Relayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,6 @@ await Task.WhenAll(
RegisterEventListeners();

initialized = true;

#pragma warning disable CS4014
Task.Run(async () =>
#pragma warning restore CS4014
{
await Task.Delay(TimeSpan.FromSeconds(10));
if (this.Subscriber.Topics.Length == 0)
{
// No topics subscribed to after init, closing transport
await this.TransportClose();
this.transportExplicityClosed = false;
}
});
}

protected virtual async Task CreateProvider()
Expand Down Expand Up @@ -477,7 +463,7 @@ private async Task ToEstablishConnection()
while (Provider.Connection.IsPaused)
{
WCLogger.Log("[Relayer] Waiting for connection to unpause");
await Task.Delay(2);
await Task.Delay(TimeSpan.FromSeconds(1));
}
return;
}
Expand Down
2 changes: 2 additions & 0 deletions WalletConnectSharp.Sign/Internals/EngineHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ async Task IEnginePrivate.OnSessionSettleRequest(string topic, JsonRpcRequest<Se
try
{
await PrivateThis.IsValidSessionSettleRequest(@params);
var pairingTopic = @params.PairingTopic;
var relay = @params.Relay;
var controller = @params.Controller;
var expiry = @params.Expiry;
Expand All @@ -140,6 +141,7 @@ async Task IEnginePrivate.OnSessionSettleRequest(string topic, JsonRpcRequest<Se
var session = new SessionStruct()
{
Topic = topic,
PairingTopic = pairingTopic,
Relay = relay,
Expiry = expiry,
Namespaces = namespaces,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ namespace WalletConnectSharp.Sign.Models.Engine.Methods
[RpcResponseOptions(Clock.FIVE_MINUTES, 1103)]
public class SessionSettle : IWcMethod
{
/// <summary>
/// Pairing topic for this session
/// </summary>
[JsonProperty("pairingTopic")]
public string PairingTopic;

/// <summary>
/// The protocol options that should be used in this session
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions WalletConnectSharp.Sign/Models/SessionStruct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ public struct SessionStruct : IKeyHolder<string>
[JsonProperty("topic")]
public string Topic;

/// <summary>
/// The pairing topic of this session
/// </summary>
[JsonProperty("pairingTopic")]
public string PairingTopic;

/// <summary>
/// The relay protocol options this session is using
/// </summary>
Expand Down

0 comments on commit ab63e99

Please sign in to comment.