Skip to content

Conversation

@Fraccaman
Copy link
Collaborator

Describe your changes

Printing the sha256 of the wasm associated with a proposal makes it easier to check the its integrity and validatity.

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes

Comment on lines -125 to -132
let proposal_code =
gov_api::get_proposal_code(&shell.state, id)?
.unwrap_or_default();
let _result = execute_default_proposal(
shell,
id,
proposal_code.clone(),
)?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grarco I think this is not needed in this branch right?

Copy link
Collaborator

@grarco grarco Aug 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct and I don't know why it is still there. I swear we talked about this thing already a few months ago and we fixed it.

Anyway, I also see that execute_pgf_funding_proposal returns a boolean that we never use so we might remove that too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im now using the result to improve the print statement

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it looks to me that execute_pgf_funding_proposal only ever returns Ok(true)

@codecov
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 61.18%. Comparing base (c1f015c) to head (8cb793c).
Report is 13 commits behind head on main.

Files Patch % Lines
crates/governance/src/storage/mod.rs 0.00% 11 Missing ⚠️
crates/node/src/shell/governance.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3617   +/-   ##
=======================================
  Coverage   61.18%   61.18%           
=======================================
  Files         311      311           
  Lines      101433   101442    +9     
=======================================
+ Hits        62059    62069   +10     
+ Misses      39374    39373    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Fraccaman Fraccaman force-pushed the fraccaman/governance-proposal-client-better-hash branch from 53d0963 to bdd18b7 Compare August 12, 2024 16:37
@Fraccaman Fraccaman marked this pull request as ready for review August 12, 2024 17:11
@Fraccaman Fraccaman requested a review from grarco August 13, 2024 11:04
@Fraccaman Fraccaman force-pushed the fraccaman/governance-proposal-client-better-hash branch from bdd18b7 to 8cb793c Compare August 13, 2024 11:13
@tzemanovic tzemanovic added the merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass label Aug 13, 2024
mergify bot added a commit that referenced this pull request Aug 13, 2024
mergify bot added a commit that referenced this pull request Aug 13, 2024
mergify bot added a commit that referenced this pull request Aug 13, 2024
mergify bot added a commit that referenced this pull request Aug 13, 2024
@mergify mergify bot merged commit f08d3f2 into main Aug 13, 2024
@mergify mergify bot deleted the fraccaman/governance-proposal-client-better-hash branch August 13, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants