Skip to content

Commit

Permalink
fixig app-upgrade-test
Browse files Browse the repository at this point in the history
txRes.Data is deprecated in favour of txRes.MsgResponses
  • Loading branch information
spoo-bar committed Sep 27, 2023
1 parent fd7ca9b commit 4fca99a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ func genesisStateWithValSet(t *testing.T,
}
validators = append(validators, validator)
delegations = append(delegations, stakingtypes.NewDelegation(genAccs[0].GetAddress(), val.Address.Bytes(), sdk.OneDec()))

}
// set validators and delegations
stakingGenesis := stakingtypes.NewGenesisState(stakingtypes.DefaultParams(), validators, delegations)
Expand Down
7 changes: 4 additions & 3 deletions e2e/testing/chain_ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ func (chain *TestChain) ExecuteGovProposal(proposerAcc Account, expPass bool, pr
msg, err := govTypes.NewMsgSubmitProposal(proposals, depositCoin, proposerAcc.Address.String(), metadata, title, summary)
require.NoError(t, err)

_, res, _, _ := chain.SendMsgs(proposerAcc, true, []sdk.Msg{msg})
_, res, _, err := chain.SendMsgs(proposerAcc, true, []sdk.Msg{msg})
require.NoError(t, err)
txRes := chain.ParseSDKResultData(res)
require.Len(t, txRes.Data, 1)
require.Len(t, txRes.MsgResponses, 1)

var resp govTypes.MsgSubmitProposalResponse
require.NoError(t, resp.Unmarshal(txRes.Data[0].Data))
require.NoError(t, resp.Unmarshal(txRes.MsgResponses[0].Value))
proposalID := resp.ProposalId

// Vote with all validators (delegators)
Expand Down

0 comments on commit 4fca99a

Please sign in to comment.