From 91d38384649d8adb655fe103b4a15f474d789710 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Wed, 28 Mar 2018 03:23:33 +0200 Subject: [PATCH] revert examples/basecoin --- examples/basecoin/x/cool/types.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/basecoin/x/cool/types.go b/examples/basecoin/x/cool/types.go index 76e7bb292..a3fa6ca48 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