-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: decode proposal id from tx resp #7785
perf: decode proposal id from tx resp #7785
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! This is much better, for sure :)
I left a small comment on the use of the suite's proposalIDs
which I think we need to resolve before we can merge.
@@ -222,16 +222,13 @@ func (s *E2ETestSuite) ExecuteAndPassGovV1Beta1Proposal(ctx context.Context, cha | |||
panic("ExecuteAndPassGovV1Beta1Proposal must be passed a cosmos.CosmosChain") | |||
} | |||
|
|||
proposalID := s.proposalIDs[chain.Config().ChainID] | |||
defer func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think this is used somewhere else, so unless we can get rid of the whole s.proposalIDs, I think we still need the defer below line 231.
If you can easily get the proposalID for the other use and get rid of it entirely, that is preferable :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @gjermundgaraba , i updated, can you help me review it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks correct to me! Thank you :)
1d704c3
to
18afeda
Compare
5678954
to
98341ea
Compare
@@ -222,16 +222,13 @@ func (s *E2ETestSuite) ExecuteAndPassGovV1Beta1Proposal(ctx context.Context, cha | |||
panic("ExecuteAndPassGovV1Beta1Proposal must be passed a cosmos.CosmosChain") | |||
} | |||
|
|||
proposalID := s.proposalIDs[chain.Config().ChainID] | |||
defer func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks correct to me! Thank you :)
Description
closes: #XXXX
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.