From e432abffdd05c945a5057e78ca31e8782796d694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=E1=BA=B7c?= <67097720+expertdicer@users.noreply.github.com> Date: Tue, 19 Dec 2023 10:40:24 +0700 Subject: [PATCH] Remove MustSortJson (#5379) * remove MustSortJson * remove the json encoding in GetBytes func --------- Co-authored-by: lacsomot <153717732+lacsomot@users.noreply.github.com> --- modules/apps/27-interchain-accounts/types/packet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apps/27-interchain-accounts/types/packet.go b/modules/apps/27-interchain-accounts/types/packet.go index 524e2ebc44a..d9116e61143 100644 --- a/modules/apps/27-interchain-accounts/types/packet.go +++ b/modules/apps/27-interchain-accounts/types/packet.go @@ -54,7 +54,7 @@ func (iapd InterchainAccountPacketData) ValidateBasic() error { // GetBytes returns the JSON marshalled interchain account packet data. func (iapd InterchainAccountPacketData) GetBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&iapd)) + return ModuleCdc.MustMarshalJSON(&iapd) } // UnmarshalJSON unmarshals raw JSON bytes into an InterchainAccountPacketData.