From 42871940407e4ed9cda7bfa142fa9dde4c7b36ea Mon Sep 17 00:00:00 2001 From: Hai Eng Date: Tue, 7 Dec 2021 16:48:35 +0800 Subject: [PATCH 1/3] typo on route = route.SetQueryParam("ordering", "id"); changed from route = route.SetQueryParam("ordering", "-id"); to route = route.SetQueryParam("ordering", "id"); for case Order.ASC: --- src/ProximaX.Sirius.Chain.Sdk/Infrastructure/AccountHttp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/AccountHttp.cs b/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/AccountHttp.cs index 806edeaf..95f3f9af 100644 --- a/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/AccountHttp.cs +++ b/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/AccountHttp.cs @@ -387,7 +387,7 @@ public IObservable 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; @@ -615,4 +615,4 @@ public IObservable GetMultisigAccountGraphInfo(PublicA #endregion MultiSig Account } -} \ No newline at end of file +} From 4aab57c8fffb64c989bba96c1589a48d9cc9622b Mon Sep 17 00:00:00 2001 From: Hai Eng Date: Tue, 7 Dec 2021 17:08:48 +0800 Subject: [PATCH 2/3] typo on queryparam --- src/ProximaX.Sirius.Chain.Sdk/Infrastructure/BlockHttp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/BlockHttp.cs b/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/BlockHttp.cs index 16d7886e..00ae7d2f 100644 --- a/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/BlockHttp.cs +++ b/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/BlockHttp.cs @@ -211,7 +211,7 @@ public IObservable 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; @@ -230,4 +230,4 @@ public IObservable GetBlockTransactions(ulong height, Transac return Observable.FromAsync(async ar => await route.GetJsonAsync()).Select(t => TransactionSearchMapping.Apply(t)); } } -} \ No newline at end of file +} From 2f53b0d817897b8d6ff0b450e7f90999632687a3 Mon Sep 17 00:00:00 2001 From: Hai Eng Date: Tue, 7 Dec 2021 17:09:19 +0800 Subject: [PATCH 3/3] typo on queryparams --- .../Infrastructure/TransactionHttp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/TransactionHttp.cs b/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/TransactionHttp.cs index e5048842..888419db 100644 --- a/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/TransactionHttp.cs +++ b/src/ProximaX.Sirius.Chain.Sdk/Infrastructure/TransactionHttp.cs @@ -288,7 +288,7 @@ public IObservable 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; @@ -307,4 +307,4 @@ public IObservable SearchTransactions(TransactionGroupType tr return Observable.FromAsync(async ar => await route.GetJsonAsync()).Select(t => TransactionSearchMapping.Apply(t)); } } -} \ No newline at end of file +}