File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
128132type queryDelegationResponse struct {
129133 Delegation Delegation `json:"delegation"`
130134}
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments