-
Notifications
You must be signed in to change notification settings - Fork 992
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
fix governance proposal execution #3087
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3087 +/- ##
==========================================
+ Coverage 59.39% 59.42% +0.02%
==========================================
Files 298 298
Lines 92771 92762 -9
==========================================
+ Hits 55104 55122 +18
+ Misses 37667 37640 -27 ☔ View full report in Codecov by Sentry. |
// Is VP triggered by a governance proposal? | ||
let is_governance_proposal = is_proposal_accepted( | ||
&self.ctx.pre(), | ||
tx_data.data().unwrap_or_default().as_ref(), | ||
) | ||
.unwrap_or_default(); | ||
|
||
let native_token = self.ctx.pre().get_native_token()?; | ||
|
||
// Find the actions applied in the tx | ||
let actions = self.ctx.read_actions()?; | ||
|
||
// There must be at least one action if any of the keys belong to gov | ||
if actions.is_empty() | ||
if !is_governance_proposal | ||
&& actions.is_empty() |
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.
@tzemanovic I had to add this condition
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.
Looks good to me! The proposal_ibc_token_inflation
will keep failing until we fix #3068 so we can ignore it for the time being
* fraccaman/fix-governance-proposal-execution: changelog: add #3087 end voting once the voting end epoch begins remove print fix governance proposal execution fix governance proposal execution
* fraccaman/fix-governance-proposal-execution: changelog: add #3087 end voting once the voting end epoch begins remove print fix governance proposal execution fix governance proposal execution
Describe your changes
Indicate on which release or other PRs this topic is based on
Checklist before merging to
draft