diff --git a/examples/basecoin/x/cool/types.go b/examples/basecoin/x/cool/types.go index 76e7bb2920..a3fa6ca48e 100644 --- a/examples/basecoin/x/cool/types.go +++ b/examples/basecoin/x/cool/types.go @@ -34,15 +34,6 @@ func (msg SetTrendMsg) String() string { return fmt.Sprintf("SetTrendMsg{Sender: %v, Cool: %v}", msg.Sender, msg.Cool) } -// Get the bytes for the message signer to sign on -func (msg SetTrendMsg) GetSignBytes() []byte { - b, err := json.Marshal(msg) - if err != nil { - panic(err) - } - return b -} - // Validate Basic is used to quickly disqualify obviously invalid messages quickly func (msg SetTrendMsg) ValidateBasic() sdk.Error { if len(msg.Sender) == 0 { @@ -57,6 +48,15 @@ func (msg SetTrendMsg) ValidateBasic() sdk.Error { return nil } +// Get the bytes for the message signer to sign on +func (msg SetTrendMsg) GetSignBytes() []byte { + b, err := json.Marshal(msg) + if err != nil { + panic(err) + } + return b +} + //_______________________________________________________________________ // A message type to quiz how cool you are. these fields are can be entirely