Skip to content

Commit

Permalink
perf: add defer function back
Browse files Browse the repository at this point in the history
  • Loading branch information
duvbell committed Dec 23, 2024
1 parent b9931c5 commit 18afeda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/testsuite/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ func (s *E2ETestSuite) ExecuteAndPassGovV1Beta1Proposal(ctx context.Context, cha
s.Require().NoError(UnmarshalMsgResponses(txResp, &submitProposalResponse))

proposalID := submitProposalResponse.ProposalId
defer func() {
s.proposalIDs[chain.Config().ChainID] = proposalID + 1
}()

proposalResp, err := query.GRPCQuery[govtypesv1beta1.QueryProposalResponse](ctx, cosmosChain, &govtypesv1beta1.QueryProposalRequest{
ProposalId: proposalID,
Expand Down

0 comments on commit 18afeda

Please sign in to comment.