Skip to content

Commit

Permalink
wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 30, 2023
1 parent 83b539f commit 642dea1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions tests/integration/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/strangelove-ventures/interchaintest/v7/ibc"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"strings"
)

const (
Expand Down Expand Up @@ -147,19 +146,13 @@ func (s *TestSuite) TestSendTxUpdating() {
s.Require().True(len(nodes) > 0)

// make params query to first node
resp, _, err := nodes[0].ExecQuery(context.Background(), "auth", "accounts")
resp, _, err := nodes[0].ExecQuery(context.Background(), "auth", "account", s.user1.FormattedAddress())
s.Require().NoError(err)

// unmarshal params
var accs authtypes.QueryAccountsResponse
err = s.cdc.UnmarshalJSON(resp, &accs)
var acc authtypes.QueryAccountResponse
err = s.cdc.UnmarshalJSON(resp, &acc)
s.Require().NoError(err)

s.T().Log(string(resp))

for _, acc := range accs.Accounts {
if strings.Contains(string(acc.Value), s.user1.FormattedAddress()) {
s.T().Log(string(acc.Value), s.user1.FormattedAddress())
}
}
}

0 comments on commit 642dea1

Please sign in to comment.