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

Enforce object mutability in move calls #162

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Enforce object mutability in move calls #162

merged 1 commit into from
Jan 12, 2022

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Jan 12, 2022

For objects that are passed to Move calls, we should also check their mutability.
This PR checks it based on the inferred mutability using function signatures.
One open question is whether we want to allow client to explicitly express their mutability desire.
For example, do we want to allow the client to be able to explicitly specify the mutability of each argument? @oxade

This closes #161.

@lxfind lxfind requested review from sblackshear and oxade January 12, 2022 22:36
Copy link
Collaborator

@sblackshear sblackshear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

Might be useful to add a test that exercises the MutableReference path.

@lxfind lxfind merged commit e438a5e into MystenLabs:main Jan 12, 2022
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.

[fastx authority & adapter] Immutability Not Enforced In Move Calls
2 participants