-
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
Create object with permissioned signer #15707
Conversation
⏱️ 6h 12m total CI duration on this PR
|
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. |
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
63aa26f
to
8e5e1bd
Compare
217346d
to
45c2794
Compare
8e5e1bd
to
f87b058
Compare
45c2794
to
a368fd6
Compare
f87b058
to
fb11eef
Compare
a368fd6
to
f2d1cc7
Compare
475d6ba
to
29845a2
Compare
f2d1cc7
to
154c5d2
Compare
29845a2
to
fc71bc4
Compare
154c5d2
to
7fce8b6
Compare
fc71bc4
to
ab3a6dc
Compare
f3c994c
to
1341cdf
Compare
a164b62
to
b45959f
Compare
1341cdf
to
e34c7da
Compare
b45959f
to
4dbfcfa
Compare
e34c7da
to
2b01fae
Compare
4dbfcfa
to
5c551bf
Compare
2b01fae
to
75508ff
Compare
0154651
into
09-09-add_perimission_checks_to_object
* Create object with permissioned signer * Update permissioned_signer.move * Update permissioned_signer.move
Description
Allowed transfer ref to grant permission to the permissioned signer.
How Has This Been Tested?
Test added
Key Areas to Review
Whether the granting logic is safe.
Type of Change
Which Components or Systems Does This Change Impact?
Checklist