-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Make withdraw_funds_from_object public #24296
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
base: xun/check-feature-flag-in-move
Are you sure you want to change the base?
Make withdraw_funds_from_object public #24296
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
a7c2a63 to
1f5d267
Compare
1f5d267 to
36aa1c7
Compare
36aa1c7 to
d74761d
Compare
d74761d to
d84b945
Compare
d84b945 to
a072733
Compare
a072733 to
7e468c0
Compare
7e468c0 to
523fd07
Compare
523fd07 to
28dd2b8
Compare
b421a25 to
b7ee335
Compare
crates/sui-framework/packages/sui-framework/sources/funds_accumulator.move
Outdated
Show resolved
Hide resolved
b7ee335 to
7c5fd41
Compare
28dd2b8 to
91d0dfc
Compare
08e6017 to
24eac85
Compare
tnowacki
left a comment
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.
Move side of things LGTM. I have not looked too closely at the various unit tests so I will leave it to @mystenmark to approve
24eac85 to
023a778
Compare
023a778 to
dab6bc6
Compare
|
|
||
| /// Attempted to check a feature flag name that is not valid UTF-8. | ||
| #[allow(unused_const)] | ||
| #[error(code = 1)] |
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.
If you emit this from the native, I don't think you will get a message ever... though maybe @tzakian has ideas
dab6bc6 to
f2d2bb0
Compare
|
Rebased on top of #24422 |
Description
Make the Move API public for object balance withdraw.
Check in runtime to make sure it cannot be called if accumulator is not enabeld.
Test plan
Added a test to check that when accumulator is disabled, one cannot withdraw from objects.
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.