Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
implement msg assign about submitevidence verifyinvariant
Browse files Browse the repository at this point in the history
  • Loading branch information
weichang-x committed Sep 3, 2020
1 parent 5a71849 commit 9a77ed8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions msg/crisis/verify_invariant.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ func (m *DocMsgVerifyInvariant) BuildMsg(v interface{}) {
data, _ := json.Marshal(v)
json.Unmarshal(data, &msg)

m.Sender = msg.Sender.String()
m.InvariantModuleName = msg.InvariantModuleName
m.InvariantRoute = msg.InvariantRoute

}

func (m *DocMsgVerifyInvariant) HandleTxMsg(msgData sdk.Msg, tx *document.CommonTx) *document.CommonTx {
Expand Down
4 changes: 4 additions & 0 deletions msg/evidence/submit_evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ func (m *DocMsgSubmitEvidence) BuildMsg(v interface{}) {
data, _ := json.Marshal(v)
json.Unmarshal(data, &msg)

m.Submitter = msg.Submitter.String()
m.Evidence.TypeUrl = msg.Evidence.GetTypeUrl()
m.Evidence.Value = string(msg.Evidence.Value)

}

func (m *DocMsgSubmitEvidence) HandleTxMsg(msgData sdk.Msg, tx *document.CommonTx) *document.CommonTx {
Expand Down

0 comments on commit 9a77ed8

Please sign in to comment.