Skip to content

Commit

Permalink
Merge PR cosmos#5702: Add Param Querying to x/auth
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez authored Feb 26, 2020
1 parent 9d87398 commit 6fd22c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions codec/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import (
var _ eviexported.MsgSubmitEvidence = MsgSubmitEvidence{}

// NewMsgSubmitEvidence returns a new MsgSubmitEvidence.
func NewMsgSubmitEvidence(evidenceI eviexported.Evidence, s sdk.AccAddress) MsgSubmitEvidence {
func NewMsgSubmitEvidence(evidenceI eviexported.Evidence, s sdk.AccAddress) (MsgSubmitEvidence, error) {
e := &Evidence{}
e.SetEvidence(evidenceI)
if err := e.SetEvidence(evidenceI); err != nil {
return MsgSubmitEvidence{}, err
}

return MsgSubmitEvidence{Evidence: e, MsgSubmitEvidenceBase: evidence.NewMsgSubmitEvidenceBase(s)}
return MsgSubmitEvidence{Evidence: e, MsgSubmitEvidenceBase: evidence.NewMsgSubmitEvidenceBase(s)}, nil
}

// ValidateBasic performs basic (non-state-dependant) validation on a
Expand Down

0 comments on commit 6fd22c2

Please sign in to comment.