-
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
Create object with permissioned signer #15707
base: 12-17-feature_gate_permissioned_signer
Are you sure you want to change the base?
Create object with permissioned signer #15707
Conversation
⏱️ 3h 6m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@@ -446,6 +446,24 @@ module aptos_framework::permissioned_signer { | |||
) | |||
} | |||
|
|||
/// Grant an unlimited permission to a permissioned signer **without** master signer's approvoal. |
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.
Typo in function comment: approvoal
should be approval
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
66b0a0a
to
5f78ed5
Compare
/// Grant a transfer permission to the permissioned signer using TransferRef. | ||
public fun grant_permission_with_transfer_ref( | ||
permissioned_signer: &signer, | ||
ref: &TransferRef, | ||
) { | ||
permissioned_signer::grant_unlimited_with_permissioned_signer( | ||
permissioned_signer, | ||
TransferPermission { object: ref.self } | ||
) |
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.
Add spec block before function to specify abort conditions:
spec grant_permission_with_transfer_ref {
aborts_if !permissioned_signer::is_permissioned_signer(permissioned_signer) with error::permission_denied();
}
Spotted by Graphite Reviewer (based on CI logs)
Is this helpful? React 👍 or 👎 to let us know.
8148ebc
to
dfa01cc
Compare
5f78ed5
to
a1bc425
Compare
dfa01cc
to
dfe7a0b
Compare
a1bc425
to
9baff65
Compare
dfe7a0b
to
1f5be33
Compare
9baff65
to
41af726
Compare
1f5be33
to
dbdce9e
Compare
41af726
to
a8d8e8e
Compare
dbdce9e
to
cf19520
Compare
a8d8e8e
to
5d0736d
Compare
cf19520
to
d4bcfe0
Compare
5d0736d
to
164a5ac
Compare
d4bcfe0
to
d88840b
Compare
164a5ac
to
edda220
Compare
d88840b
to
2f50393
Compare
2ac1311
to
25aebf2
Compare
bb44dff
to
eebdf27
Compare
25aebf2
to
33583cc
Compare
eebdf27
to
a44c587
Compare
33583cc
to
8a7d707
Compare
a44c587
to
32f31d4
Compare
8a7d707
to
1609f68
Compare
32f31d4
to
1e46c52
Compare
1609f68
to
57f9057
Compare
1e46c52
to
85ff210
Compare
57f9057
to
ab206c6
Compare
85ff210
to
ce6813c
Compare
ab206c6
to
71ba998
Compare
ce6813c
to
6d151ac
Compare
71ba998
to
4d43839
Compare
6d151ac
to
75c97b0
Compare
4d43839
to
e60a1a9
Compare
75c97b0
to
37cabc1
Compare
e60a1a9
to
6c5a617
Compare
37cabc1
to
3736cdb
Compare
6c5a617
to
1cfb6a4
Compare
3736cdb
to
406fd4a
Compare
1cfb6a4
to
1f5756c
Compare
406fd4a
to
e75f27b
Compare
1f5756c
to
cb04560
Compare
e75f27b
to
d4fcefc
Compare
cb04560
to
4be521a
Compare
d4fcefc
to
1847955
Compare
4be521a
to
070189b
Compare
Description
How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist