Skip to content

Commit

Permalink
fix: add required helper for group module
Browse files Browse the repository at this point in the history
  • Loading branch information
daeMOn63 committed Nov 11, 2021
1 parent 096fa23 commit 378a1bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/tx_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 378a1bb

Please sign in to comment.