-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[move-2024] Method syntax for
move-stdlib
(#16466)
## Description Does what it says on the tin (read: makes the code all shiny!) Public use funs: ``` ascii.move 10: public use fun std::string::from_ascii as String.to_string; vector.move 10: public use fun std::string::utf8 as vector.to_string; 14: public use fun std::string::try_utf8 as vector.try_to_string; 17: public use fun std::ascii::string as vector.to_ascii_string; 21: public use fun std::ascii::try_string as vector.try_to_ascii_string; ``` ## Test Plan All the tests still work as expected, plus hand-analysis of decompiled bytecode matches 1:1. --- If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section. ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
Showing
15 changed files
with
227 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.