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

Commit

Permalink
Merge pull request #231 from weichang-bianjie/bifrost
Browse files Browse the repository at this point in the history
implement msg assign about submitevidence verifyinvariant
  • Loading branch information
weichang-x authored Sep 3, 2020
2 parents 2ac4db3 + 22c3495 commit 3c9e6e6
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 3c9e6e6

Please sign in to comment.