From 66532056e85e7184a8edb48b2a46d445c172ac36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=E1=BA=B7c?= <67097720+expertdicer@users.noreply.github.com> Date: Thu, 21 Dec 2023 16:37:55 +0700 Subject: [PATCH] chore: remove `sdk.MustSortJSON` from channel types acknowledgement (#5377) Co-authored-by: lacsomot <153717732+lacsomot@users.noreply.github.com> Co-authored-by: DimitrisJim --- modules/core/04-channel/types/acknowledgement.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/core/04-channel/types/acknowledgement.go b/modules/core/04-channel/types/acknowledgement.go index 9b802d0e2c7..e8db340bfeb 100644 --- a/modules/core/04-channel/types/acknowledgement.go +++ b/modules/core/04-channel/types/acknowledgement.go @@ -6,8 +6,6 @@ import ( "strings" errorsmod "cosmossdk.io/errors" - - sdk "github.com/cosmos/cosmos-sdk/types" ) const ( @@ -70,5 +68,5 @@ func (ack Acknowledgement) Success() bool { // Acknowledgement implements the Acknowledgement interface. It returns the // acknowledgement serialised using JSON. func (ack Acknowledgement) Acknowledgement() []byte { - return sdk.MustSortJSON(SubModuleCdc.MustMarshalJSON(&ack)) + return SubModuleCdc.MustMarshalJSON(&ack) }