From 378a1bbeac5c9827fb1e5dad1829980a01391362 Mon Sep 17 00:00:00 2001 From: Flavien Binet Date: Thu, 11 Nov 2021 09:18:58 +0100 Subject: [PATCH] fix: add required helper for group module --- types/tx_msg.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/tx_msg.go b/types/tx_msg.go index b8a602d88c..0bf496abb5 100644 --- a/types/tx_msg.go +++ b/types/tx_msg.go @@ -85,3 +85,8 @@ type TxDecoder func(txBytes []byte) (Tx, error) // TxEncoder marshals transaction to bytes type TxEncoder func(tx Tx) ([]byte, error) + +// MsgTypeURL returns the TypeURL of a `sdk.Msg`. +func MsgTypeURL(msg Msg) string { + return "/" + proto.MessageName(msg) +}