diff --git a/tests/systemtests/staking_test.go b/tests/systemtests/staking_test.go index ba734d6e8d9..b1b3829a9d1 100644 --- a/tests/systemtests/staking_test.go +++ b/tests/systemtests/staking_test.go @@ -42,7 +42,11 @@ func TestStakeUnstake(t *testing.T) { assert.Equal(t, int64(8999999), cli.QueryBalance(account1Addr, "stake")) // check validator has been updated - rsp = cli.CustomQuery("q", "block-results", gjson.Get(rsp, "height").String()) + if systest.IsV2() { + rsp = cli.CustomQuery("q", "comet", "block-results", gjson.Get(rsp, "height").String()) + } else { + rsp = cli.CustomQuery("q", "block-results", gjson.Get(rsp, "height").String()) + } validatorUpdates := gjson.Get(rsp, "validator_updates").Array() assert.NotEmpty(t, validatorUpdates) vpk := gjson.Get(validatorUpdates[0].String(), "pub_key_bytes").String()