Skip to content

Commit 8019e9f

Browse files
committed
increase voting period, wrap staking response
1 parent 06e7abd commit 8019e9f

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

interchaintest/helpers/staking.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ func QueryDelegation(
5757

5858
debugOutput(t, string(stdout))
5959

60-
var resp queryDelegationResponse
60+
var resp queryDelegationsResponseWrapper
6161
err = json.Unmarshal(stdout, &resp)
6262
require.NoError(t, err)
6363

64-
return resp.Delegation
64+
return resp.QueryDelegationResponse.Delegation
6565
}
6666

6767
// QueryUnbondingDelegations gets info about all unbonding delegations for a delegator
@@ -125,6 +125,10 @@ type queryTotalLiquidStaked struct {
125125
Tokens math.Int `json:"tokens"`
126126
}
127127

128+
type queryDelegationsResponseWrapper struct {
129+
QueryDelegationResponse queryDelegationResponse `json:"delegation_response"`
130+
}
131+
128132
type queryDelegationResponse struct {
129133
Delegation Delegation `json:"delegation"`
130134
}

interchaintest/setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var (
6767
fastVotingGenesisOverridesKV = []cosmos.GenesisKV{
6868
{
6969
Key: "app_state.gov.params.voting_period",
70-
Value: "5s",
70+
Value: "10s",
7171
},
7272
{
7373
Key: "app_state.gov.params.max_deposit_period",

0 commit comments

Comments
 (0)