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

[Create a fungible token with Sui Move]: Error fixture #472

Open
ishaaqziyan opened this issue May 30, 2024 · 0 comments
Open

[Create a fungible token with Sui Move]: Error fixture #472

ishaaqziyan opened this issue May 30, 2024 · 0 comments

Comments

@ishaaqziyan
Copy link

There's an error that does not allow users to compile the code.
Error: Error[E01003]: invalid modifier ┌─ ./sources/mycoin.move:8:5 │ 8 │ struct MY_COIN has drop {} │ ^^^^^^ Invalid struct declaration. Internal struct declarations are not yet supported │ = Visibility annotations are required on struct declarations from the Move 2024 edition onwards.

Fix: go to move.toml and change edition = "2024.beta" to #edition = "2024.beta"

Please add this to the curriculum.
Thanks

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

No branches or pull requests

1 participant