Skip to content
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

[Move] Change transfer_and_freeze to freeze_object #672

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Mar 6, 2022

We used to have transfer_and_freeze in Move API where a recipient is specified. This no longer makes sense since an immutable object is shared and hence does not have an owner. There is no need to specify a recipient when freezing an object.
This PR removes the recipient from the freeze API and rename it to freeze_object.
The event name and tests are also changed to reflect this.
The transfer to address API and transfer to object API are merged as a cleanup too.
Similar cleanups in test_scenario.rs.

@lxfind lxfind merged commit 4f16649 into main Mar 7, 2022
@lxfind lxfind deleted the no-owner-for-freeze branch March 7, 2022 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants