Skip to content
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

add move script for reducing voting threshold #15910

Open
wants to merge 1 commit into
base: aptos-release-v1.25
Choose a base branch
from

Conversation

sherry-x
Copy link
Contributor

@sherry-x sherry-x commented Feb 7, 2025

Description

How Has This Been Tested?

Key Areas to Review

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Performance improvement
  • Refactoring
  • Dependency update
  • Documentation update
  • Tests

Which Components or Systems Does This Change Impact?

  • Validator Node
  • Full Node (API, Indexer, etc.)
  • Move/Aptos Virtual Machine
  • Aptos Framework
  • Aptos CLI/SDK
  • Developer Infrastructure
  • Move Compiler
  • Other (specify)

Checklist

  • I have read and followed the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I identified and added all stakeholders and component owners affected by this change as reviewers
  • I tested both happy and unhappy path of the functionality
  • I have made corresponding changes to the documentation

Copy link

trunk-io bot commented Feb 7, 2025

⏱️ 1h 21m total CI duration on this PR
Job Cumulative Duration Recent Runs
rust-unit-tests 27m 🟥
rust-unit-tests 10m
rust-move-tests 8m 🟥
rust-move-tests 8m 🟥
rust-cargo-deny 7m 🟩🟩🟩🟩
rust-move-tests 5m
rust-unit-tests 5m
check-dynamic-deps 4m 🟩🟩🟩🟩
rust-move-tests 2m
rust-unit-tests 2m
general-lints 2m 🟩🟩🟩🟩
semgrep/ci 2m 🟩🟩🟩🟩
file_change_determinator 42s 🟩🟩🟩🟩
permission-check 12s 🟩🟩🟩🟩
permission-check 11s 🟩🟩🟩🟩

🚨 1 job on the last run was significantly faster/slower than expected

Job Duration vs 7d avg Delta
check-dynamic-deps 38s 2m -74%

settingsfeedbackdocs ⋅ learn more about trunk.io

@sherry-x sherry-x force-pushed the update-governance-threshold branch 2 times, most recently from a61cd82 to 3615784 Compare February 7, 2025 16:50
aptos_governance::get_required_proposer_stake(),
aptos_governance::get_voting_duration_secs(),
);
aptos_governance::reconfigure(framework_signer);
Copy link

Choose a reason for hiding this comment

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

The framework_signer parameter is borrowed as a reference (&) but reconfigure() expects an owned value. Please dereference the borrowed reference by changing to aptos_governance::reconfigure(*framework_signer).

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

@sherry-x sherry-x force-pushed the update-governance-threshold branch from 3615784 to 167e3ee Compare February 7, 2025 16:53
Comment on lines +5 to +6
let framework_signer = aptos_governance::get_signer_testnet_only(account,
@0000000000000000000000000000000000000000000000000000000000000001);
Copy link

Choose a reason for hiding this comment

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

This code uses get_signer_testnet_only() which is restricted to testnet environments. For mainnet deployment, please use get_signer() instead. The testnet-only version will cause the transaction to fail on mainnet.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant