Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Update to Aries 1.6.1 (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Horacio Nunez <horacio@merthin.com>
  • Loading branch information
horationunez authored May 5, 2021
1 parent 9fb5ad3 commit 8305007
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="5.1.2" />
<PackageReference Include="Hyperledger.Aries.Routing.Edge" Version="1.3.2" />
<PackageReference Include="Hyperledger.Aries.Routing.Edge" Version="1.6.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Osma.Mobile.App/Osma.Mobile.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<PackageReference Include="West.Extensions.XamarinHosting" Version="3.0.0-preview1" />
<PackageReference Include="Xamarin.FFImageLoading.Transformations" Version="2.4.11.982" />
<PackageReference Include="Xamarin.Essentials" Version="1.5.2" />
<PackageReference Include="Hyperledger.Aries.Routing.Edge" Version="1.3.2" />
<PackageReference Include="Hyperledger.Aries.Routing.Edge" Version="1.6.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public override Task InitializeAsync(object navigationData)
{
var (msg, rec) = await _connectionService.CreateRequestAsync(context, _invite);
msg.Label = "OSMA";
await _messageService.SendAsync(context.Wallet, msg, rec);
await _messageService.SendAsync(context, msg, rec);

_eventAggregator.Publish(new ApplicationEvent() { Type = ApplicationEventType.ConnectionsUpdated });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task RefreshTransactions()

try
{
var response = await _messageService.SendReceiveAsync(context.Wallet, message, _record) as UnpackedMessageContext;
var response = await _messageService.SendReceiveAsync(context, message, _record) as UnpackedMessageContext;
protocols = response.GetMessage<DiscoveryDiscloseMessage>();
}
catch (Exception)
Expand Down Expand Up @@ -129,7 +129,7 @@ public async Task PingConnectionAsync()
bool success = false;
try
{
var response = await _messageService.SendReceiveAsync(context.Wallet, message, _record) as UnpackedMessageContext;
var response = await _messageService.SendReceiveAsync(context, message, _record) as UnpackedMessageContext;
var trustPingResponse = response.GetMessage<TrustPingResponseMessage>();
success = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async Task AcceptCredential()
var context = await agentContextProvider.GetContextAsync();

var (request, _) = await credentialService.CreateRequestAsync(context, _credential.Id);
await messageService.SendAsync(context.Wallet, request, _connection);
await messageService.SendAsync(context, request, _connection );

eventAggregator.Publish(new ApplicationEvent() { Type = ApplicationEventType.CredentialsUpdated });
await NavigationService.PopModalAsync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ public async Task GetRequestedAttributes()

//TODO: Implement Predicate and Restrictions related functionlity
}
catch (Exception xx)
catch (Exception ex)
{

Console.WriteLine(ex.Message);
}
}

Expand Down Expand Up @@ -177,7 +177,7 @@ private async Task CreatePresentation()
else
{
var (proofMsg, holderRecord) = await proofService.CreatePresentationAsync(context, proofRecord.Id, requestedCredentials);
await messageService.SendAsync(context.Wallet, proofMsg, connection);
await messageService.SendAsync(context, proofMsg, connection);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public async Task RefreshProofRequests()
ProofRequests.InsertRange(proofRequestVms);
HasRequests = ProofRequests.Any();
}
catch (Exception xx)
catch (Exception ex)
{

Console.WriteLine(ex.Message);
}
finally
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected override DataTemplate OnSelectTemplate(object item, BindableObject con
//credentialAttributeType = (CredentialAttributeType)Enum.Parse(typeof(CredentialAttributeType), credentialAttribute.Type, true);
var isTypeDefined = Enum.TryParse<CredentialAttributeType>(credentialAttribute.Type, true, out credentialAttributeType);
}
catch (ArgumentException xx)
catch (ArgumentException)
{
//throw new ArgumentException("Credential Attribute Type is Invalid");
}
Expand Down

0 comments on commit 8305007

Please sign in to comment.