Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: update x/collection,token proto #863

Merged
merged 23 commits into from
Feb 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
0Tech committed Feb 2, 2023
commit fae2a1f9aec7adda44465dbecf989b82e331cea6
2 changes: 1 addition & 1 deletion x/token/client/testutil/suite.go
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ func (s *IntegrationTestSuite) authorizeOperator(contractID string, holder, oper
fmt.Sprintf("--%s=%s", flags.FlagFrom, holder),
}, commonArgs...)

out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cli.NewTxCmdApprove(), args)
out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cli.NewTxCmdAuthorizeOperator(), args)
s.Require().NoError(err)

var res sdk.TxResponse
4 changes: 2 additions & 2 deletions x/token/client/testutil/tx.go
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ func (s *IntegrationTestSuite) TestNewTxCmdOperatorSend() {
}
}

func (s *IntegrationTestSuite) TestNewTxCmdApprove() {
func (s *IntegrationTestSuite) TestNewTxCmdAuthorizeOperator() {
val := s.network.Validators[0]
commonArgs := []string{
fmt.Sprintf("--%s=%s", flags.FlagFrom, s.vendor),
@@ -197,7 +197,7 @@ func (s *IntegrationTestSuite) TestNewTxCmdApprove() {
tc := tc

s.Run(name, func() {
cmd := cli.NewTxCmdApprove()
cmd := cli.NewTxCmdAuthorizeOperator()
out, err := clitestutil.ExecTestCLICmd(val.ClientCtx, cmd, append(tc.args, commonArgs...))
if !tc.valid {
s.Require().Error(err)