revert examples/basecoin
This commit is contained in:
parent
cabdbfd71e
commit
91d3838464
|
@ -34,15 +34,6 @@ func (msg SetTrendMsg) String() string {
|
||||||
return fmt.Sprintf("SetTrendMsg{Sender: %v, Cool: %v}", msg.Sender, msg.Cool)
|
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
|
// Validate Basic is used to quickly disqualify obviously invalid messages quickly
|
||||||
func (msg SetTrendMsg) ValidateBasic() sdk.Error {
|
func (msg SetTrendMsg) ValidateBasic() sdk.Error {
|
||||||
if len(msg.Sender) == 0 {
|
if len(msg.Sender) == 0 {
|
||||||
|
@ -57,6 +48,15 @@ func (msg SetTrendMsg) ValidateBasic() sdk.Error {
|
||||||
return nil
|
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
|
// A message type to quiz how cool you are. these fields are can be entirely
|
||||||
|
|
Loading…
Reference in New Issue