-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Multisig V2] Aborts the multisig transaction if the provided payload does not match the payload stored onchain #13160
Conversation
⏱️ 2h 47m total CI duration on this PR
🚨 2 jobs on the last run were significantly faster/slower than expected
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13160 +/- ##
=========================================
- Coverage 58.6% 58.6% -0.1%
=========================================
Files 823 823
Lines 198440 198453 +13
=========================================
+ Hits 116350 116351 +1
- Misses 82090 82102 +12 ☔ View full report in Codecov by Sentry. |
9838644
to
c7b80fc
Compare
e0271b4
to
9a4cc41
Compare
aptos-move/framework/aptos-framework/sources/multisig_account.move
Outdated
Show resolved
Hide resolved
aptos-move/framework/aptos-framework/sources/multisig_account.move
Outdated
Show resolved
Hide resolved
9a4cc41
to
d22a42c
Compare
@@ -116,6 +116,7 @@ pub enum FeatureFlag { | |||
DispatchableFungibleAsset, | |||
NewAccountsDefaultToFaAptStore, | |||
OperationsDefaultToFaAptStore, | |||
MultisigV2Fix, |
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.
nit: maybe a more descriptive name rather than "fix"? Would be nice to have some context for the future
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.
Done renaming it. Thanks!
d22a42c
to
001a924
Compare
001a924
to
27aff2c
Compare
453b5cc
to
d694c34
Compare
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.
LGTM, see comments for some questions I have
/// abort if the provided payload does not match the payload stored on-chain. | ||
/// | ||
/// Lifetime: transient | ||
const MULTISIG_V2_FIX: u64 = 69; |
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.
nit: based on the description, isn't it better to call the flag (and in Rust code) ABORT_IF_MISMATCHED_MULTISIG_PAYLOAD
? Then feature reads easily like abort_if_mismatched_multisig_payload_enabled()
and it is way clearer what the features is above without having to look up much?
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.
Done renaming it! Thank you!
d694c34
to
edb757e
Compare
… onchain payloads Updates the `validate_multisig_transaction ` function, so that the multisig transaction fails if the provided payload does not match to the onchain payload. This fixes #12929.
edb757e
to
ebd1b45
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
This PR update the
validate_multisig_transaction
function, so that the multisig transaction fails if the provided payload does not match to the onchain payload. This fixes #12929.Type of Change
Which Components or Systems Does This Change Impact?
How Has This Been Tested?
Tested on the localnet
Added API tests