You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running "sui move build" with the following code in my .move file:
/// Module: test_nft
module test_nft::test_nft {
use sui::url::{Self, Url};
use std::string;
use sui::object::{Self, ID, UID};
use sui::event;
use sui::transfer;
use sui::tx_context::{Self, TxContext};
/// An example NFT that can be minted by anybody
struct DevNetNFT has key, store {
id: UID,
/// Name for the token
name: string::String,
/// Description of the token
description: string::String,
/// URL for the token
url: Url,
}
}
When running "sui move build" with the following code in my .move file:
I get the following error message:
error[E01003]: invalid modifier
┌─ sources/simba_nft.move:4:5
│
4 │ struct NFT {
│ ^^^^^^ Invalid struct declaration. Internal struct declarations are not yet supported
I know that internal struct declarations are allowed. What is the issue? I've setup the sui environment per the documentation. Can some one help?
The text was updated successfully, but these errors were encountered: