-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
base: aptos-release-v1.25
Are you sure you want to change the base?
Conversation
⏱️ 1h 21m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
a61cd82
to
3615784
Compare
aptos_governance::get_required_proposer_stake(), | ||
aptos_governance::get_voting_duration_secs(), | ||
); | ||
aptos_governance::reconfigure(framework_signer); |
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.
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.
3615784
to
167e3ee
Compare
let framework_signer = aptos_governance::get_signer_testnet_only(account, | ||
@0000000000000000000000000000000000000000000000000000000000000001); |
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 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.
Description
How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist