0xmetaschool/Learning-Projects

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

Opened this issue · 0 comments

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