Skip to content

Commit

Permalink
Merge branch 'main' into julien/autocli-tx-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Oct 12, 2023
2 parents e4c841e + b8b32cf commit 4bf8028
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 955 deletions.
18 changes: 7 additions & 11 deletions tests/e2e/group/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,14 @@ func (s *E2ETestSuite) SetupSuite() {
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &txResp), out.String())
s.Require().NoError(clitestutil.CheckTxCode(s.network, val.ClientCtx, txResp.TxHash, 0))

msg := &group.MsgVote{
ProposalId: uint64(1),
Voter: val.Address.String(),
Option: group.VOTE_OPTION_YES,
}

// vote
out, err = clitestutil.ExecTestCLICmd(val.ClientCtx, client.MsgVoteCmd(),
append(
[]string{
"1",
val.Address.String(),
"VOTE_OPTION_YES",
"",
},
s.commonFlags...,
),
)
out, err = clitestutil.SubmitTestTx(val.ClientCtx, msg, val.Address, clitestutil.TestTxConfig{})
s.Require().NoError(err, out.String())
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &txResp), out.String())
s.Require().NoError(clitestutil.CheckTxCode(s.network, val.ClientCtx, txResp.TxHash, 0))
Expand Down
Loading

0 comments on commit 4bf8028

Please sign in to comment.