We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Follow the doc: https://docs.sui.io/guides/developer/first-app/write-package
sui move new my_first_package
my_module.move
sui move build
build success.
error[E01003]: invalid modifier ┌─ sources/my_module.move:9:5 │ 9 │ struct Sword has key, store { │ ^^^^^^ Invalid struct declaration. Internal struct declarations are not yet supported │ = Visibility annotations are required on struct declarations from the Move 2024 edition onwards. error[E01003]: invalid modifier ┌─ sources/my_module.move:15:5 │ 15 │ struct Forge has key, store { │ ^^^^^^ Invalid struct declaration. Internal struct declarations are not yet supported │ = Visibility annotations are required on struct declarations from the Move 2024 edition onwards. Failed to build Move modules: Compilation error.
The [pachage] in Move.toml is:
[package] name = "my_first_package" edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move # license = "" # e.g., "MIT", "GPL", "Apache 2.0" # authors = ["..."] # e.g., ["Joe Smith (joesmith@noemail.com)", "John Snow (johnsnow@noemail.com)"]
The edition should be annotated!!!
The text was updated successfully, but these errors were encountered:
change edition = "2024.beta" to #edition = "2024.beta" or add public struct
Sorry, something went wrong.
No branches or pull requests
Steps to Reproduce Issue
Follow the doc: https://docs.sui.io/guides/developer/first-app/write-package
sui move new my_first_package
my_module.move
filesui move build
Expected Result
build success.
Actual Result
The [pachage] in Move.toml is:
The edition should be annotated!!!
System Information
The text was updated successfully, but these errors were encountered: