Skip to content

Commit

Permalink
hopefully this does the trick to make the query work
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega committed May 8, 2024
1 parent d272e56 commit 9b809e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion e2e/tests/interchain_accounts/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ func (s *InterchainAccountsParamsTestSuite) TestHostEnabledParam() {
})

t.Run("verify acknowledgement error in ack transaction", func(t *testing.T) {
txSearchRes, err := s.QueryTxsByEvents(ctx, chainB, 1, 1, "message.action='/ibc.core.channel.v1.MsgRecvPacket'", "")
cmd := "message.action=/ibc.core.channel.v1.MsgRecvPacket"
if testvalues.TransactionEventQueryFeatureReleases.IsSupported(chainBVersion) {
cmd = "message.action='/ibc.core.channel.v1.MsgRecvPacket'"
}
txSearchRes, err := s.QueryTxsByEvents(ctx, chainB, 1, 1, cmd, "")
s.Require().NoError(err)
s.Require().Len(txSearchRes.Txs, 1)

Expand Down
10 changes: 6 additions & 4 deletions e2e/tests/interchain_accounts/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (s *InterchainAccountsQueryTestSuite) TestInterchainAccountsQuery() {
// channel-0 is a transfer channel but it will not be used in this test case
relayer, _ := s.SetupChainsRelayerAndChannel(ctx, nil)
chainA, chainB := s.GetChains()
chainBVersion := chainB.Config().Images[0].Version

// setup 2 accounts: controller account on chain A, a second chain B account.
// host account will be created when the ICA is registered
Expand Down Expand Up @@ -111,10 +112,11 @@ func (s *InterchainAccountsQueryTestSuite) TestInterchainAccountsQuery() {

ack := &channeltypes.Acknowledgement_Result{}
t.Run("retrieve acknowledgement", func(t *testing.T) {
txSearchRes, err := s.QueryTxsByEvents(
ctx, chainB, 1, 1,
"message.action='/ibc.core.channel.v1.MsgRecvPacket'", "",
)
cmd := "message.action=/ibc.core.channel.v1.MsgRecvPacket"
if testvalues.TransactionEventQueryFeatureReleases.IsSupported(chainBVersion) {
cmd = "message.action='/ibc.core.channel.v1.MsgRecvPacket'"
}
txSearchRes, err := s.QueryTxsByEvents(ctx, chainB, 1, 1, cmd, "")
s.Require().NoError(err)
s.Require().Len(txSearchRes.Txs, 1)

Expand Down

0 comments on commit 9b809e4

Please sign in to comment.