Skip to content

Commit

Permalink
Merge pull request #27 from proximax-storage/v0.7.0-bug-fix
Browse files Browse the repository at this point in the history
typo on setqueryparam
  • Loading branch information
otsybizov authored Dec 7, 2021
2 parents e7e1113 + 2f53b0d commit 9a62364
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ProximaX.Sirius.Chain.Sdk/Infrastructure/AccountHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public IObservable<TransactionSearch> OutgoingTransactions(PublicAccount account
switch (query.Order)
{
case Order.ASC:
route = route.SetQueryParam("ordering", "-id");
route = route.SetQueryParam("ordering", "id");
route = route.SetQueryParam("block", "meta.height");

break;
Expand Down Expand Up @@ -615,4 +615,4 @@ public IObservable<MultisigAccountGraphInfo> GetMultisigAccountGraphInfo(PublicA

#endregion MultiSig Account
}
}
}
4 changes: 2 additions & 2 deletions src/ProximaX.Sirius.Chain.Sdk/Infrastructure/BlockHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public IObservable<TransactionSearch> GetBlockTransactions(ulong height, Transac
switch (query.Order)
{
case Order.ASC:
route = route.SetQueryParam("ordering", "-id");
route = route.SetQueryParam("ordering", "id");
route = route.SetQueryParam("block", "meta.height");

break;
Expand All @@ -230,4 +230,4 @@ public IObservable<TransactionSearch> GetBlockTransactions(ulong height, Transac
return Observable.FromAsync(async ar => await route.GetJsonAsync<JObject>()).Select(t => TransactionSearchMapping.Apply(t));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public IObservable<TransactionSearch> SearchTransactions(TransactionGroupType tr
switch (query.Order)
{
case Order.ASC:
route = route.SetQueryParam("ordering", "-id");
route = route.SetQueryParam("ordering", "id");
route = route.SetQueryParam("block", "meta.height");

break;
Expand All @@ -307,4 +307,4 @@ public IObservable<TransactionSearch> SearchTransactions(TransactionGroupType tr
return Observable.FromAsync(async ar => await route.GetJsonAsync<JObject>()).Select(t => TransactionSearchMapping.Apply(t));
}
}
}
}

0 comments on commit 9a62364

Please sign in to comment.