-
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 benchmark #14916
base: 09-11-permission_for_framework
Are you sure you want to change the base?
Create benchmark #14916
Conversation
⏱️ 1h 59m total CI duration on this PR
🚨 2 jobs on the last run were 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. |
43f2715
to
d468098
Compare
d468098
to
43f2715
Compare
6c002e4
to
44e71be
Compare
43f2715
to
e036793
Compare
44e71be
to
9161080
Compare
e036793
to
e4239a8
Compare
9161080
to
b728e81
Compare
e4239a8
to
d92055d
Compare
ef3c832
to
e2fcd91
Compare
d92055d
to
881aa71
Compare
e2fcd91
to
4caabaf
Compare
881aa71
to
e569dd2
Compare
4caabaf
to
e5d6e5d
Compare
e569dd2
to
7723f05
Compare
e5d6e5d
to
bf6221c
Compare
7723f05
to
54bc94c
Compare
bf6221c
to
115f8f6
Compare
54bc94c
to
5d15334
Compare
115f8f6
to
124c67e
Compare
e91028e
to
cab9176
Compare
06c7b2f
to
0b04c34
Compare
cab9176
to
0e33483
Compare
0b04c34
to
701bd90
Compare
0e33483
to
f80ad5e
Compare
701bd90
to
dc45a68
Compare
f80ad5e
to
75b275e
Compare
dc45a68
to
9f4c26b
Compare
75b275e
to
50837c1
Compare
9f4c26b
to
fa00b2b
Compare
50837c1
to
b4f375d
Compare
fa00b2b
to
afcf6ee
Compare
b4f375d
to
346b2f0
Compare
afcf6ee
to
3945d58
Compare
346b2f0
to
a58773f
Compare
3945d58
to
9ea22ad
Compare
public entry fun transfer_permissioned( | ||
source: &signer, to: address, amount: u64 | ||
) { | ||
let handle = permissioned_signer::create_permissioned_handle(source); | ||
let permissioned_signer = permissioned_signer::signer_from_permissioned_handle(&handle); | ||
|
||
primary_fungible_store::grant_apt_permission(source, &permissioned_signer, amount); | ||
aptos_account::transfer(&permissioned_signer, to, amount); | ||
|
||
permissioned_signer::destroy_permissioned_handle(handle); | ||
} |
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 transfer_permissioned
function needs error handling around grant_apt_permission
to prevent resource leaks. If permission granting fails, the handle
created by create_permissioned_handle
will not be properly cleaned up. Consider wrapping the permission and transfer operations in a let-else
block to ensure destroy_permissioned_handle
is called in both success and failure paths.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
a58773f
to
689b0bb
Compare
9ea22ad
to
b5759d6
Compare
689b0bb
to
da313b3
Compare
b5759d6
to
7afaedc
Compare
da313b3
to
e51b1d4
Compare
7afaedc
to
2a0df61
Compare
e51b1d4
to
8475fe6
Compare
2a0df61
to
a94f57b
Compare
8475fe6
to
74b326f
Compare
a94f57b
to
b8c8238
Compare
74b326f
to
28c320c
Compare
b8c8238
to
1c9648c
Compare
Description
Added new transaction types for APT token transfers, including a permissioned transfer option that uses the permissioned signer framework. This enables both standard APT transfers and permissioned transfers through the transaction generator and e2e benchmark framework.
How Has This Been Tested?
The functionality is integrated into the existing e2e benchmark framework and transaction generator test infrastructure. The new transfer types are added to the test suite alongside other transaction types.
Key Areas to Review
permissioned_transfer.move
implementing both standard and permissioned transfer functionsType of Change
Which Components or Systems Does This Change Impact?
Checklist