From 18afeda6bb09bf9d40ff097ad5502203ee03377b Mon Sep 17 00:00:00 2001 From: duvbell Date: Mon, 23 Dec 2024 16:38:02 +0700 Subject: [PATCH] perf: add defer function back --- e2e/testsuite/tx.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/testsuite/tx.go b/e2e/testsuite/tx.go index d7539fb45945..c037ebb3d3b9 100644 --- a/e2e/testsuite/tx.go +++ b/e2e/testsuite/tx.go @@ -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,