From 3a59af3e2fef6bd5e911df4c216e4b546c1a655c Mon Sep 17 00:00:00 2001 From: vuong177 Date: Wed, 21 Jun 2023 05:23:07 +0700 Subject: [PATCH] GetSignBytes --- modules/light-clients/08-wasm/types/msgs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/light-clients/08-wasm/types/msgs.go b/modules/light-clients/08-wasm/types/msgs.go index ff0b7a4e200..986e850f02b 100644 --- a/modules/light-clients/08-wasm/types/msgs.go +++ b/modules/light-clients/08-wasm/types/msgs.go @@ -42,3 +42,8 @@ func (m MsgPushNewWasmCode) GetSigners() []sdk.AccAddress { } return []sdk.AccAddress{signer} } + +// GetSignBytes implements the LegacyMsg interface. +func (msg MsgPushNewWasmCode) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) +}