Commit 3879bc6b authored by vipwzw's avatar vipwzw Committed by 33cn

auto ci

parent 47540288
......@@ -286,7 +286,7 @@ func commentProposal(cmd *cobra.Command, args []string) {
params := &auty.Comment{
ProposalID: proposalID,
RepHash: repHash,
RepHash: repHash,
Comment: comment,
}
var res string
......
......@@ -175,10 +175,10 @@ func saveCommentHeightIndex(res *auty.ReceiptProposalComment) (kvs []*types.KeyV
kv.Key = calcCommentHeight(res.Cmt.ProposalID, dapp.HeightIndexStr(res.Height, int64(res.Index)))
kv.Value = types.Encode(&auty.RelationCmt{
RepHash: res.Cmt.RepHash,
Comment: res.Cmt.Comment,
Height: res.Height,
Index: res.Index,
Hash: res.Hash,
Comment: res.Cmt.Comment,
Height: res.Height,
Index: res.Index,
Hash: res.Hash,
})
kvs = append(kvs, kv)
return kvs
......
......@@ -271,7 +271,7 @@ func TestExecLocalCommentProp(t *testing.T) {
receiptCmt := &auty.ReceiptProposalComment{
Cmt: &auty.Comment{
ProposalID: propID,
RepHash: Repcmt,
RepHash: Repcmt,
Comment: comment,
},
Height: 11,
......@@ -298,7 +298,7 @@ func TestExecDelLocalCommentProp(t *testing.T) {
receiptCmt := &auty.ReceiptProposalComment{
Cmt: &auty.Comment{
ProposalID: propID,
RepHash: Repcmt,
RepHash: Repcmt,
Comment: comment,
},
Height: 11,
......@@ -349,7 +349,7 @@ func TestListProposalComment(t *testing.T) {
testcase = append(testcase, testcase2...)
cur := &auty.RelationCmt{
RepHash: "aaaaaa",
Comment: "bbbbbbbbbb",
Comment: "bbbbbbbbbb",
}
for _, tcase := range testcase {
key := calcCommentHeight(tcase.propID,
......
......@@ -537,7 +537,7 @@ func TestComment(t *testing.T) {
comment := "3333333333"
opt1 := &auty.Comment{
ProposalID: propID,
RepHash: Repcmt,
RepHash: Repcmt,
Comment: comment,
}
pbtx, err := commentPropTx(opt1)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment