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
The demo code no longer meets the requirements of the current Sui version, and the public struct must be used at present. Other import statements can be condensed:
// Copyright (c) 2022, Sui Foundation
// SPDX-License-Identifier: Apache-2.0
/// A basic Hello World example for Sui Move, part of the Sui Move intro course:
/// https://github.com/sui-foundation/sui-move-intro-course
///
module hello_world::hello_world {
use std::string;
public struct HelloWorldObject has key, store {
id: UID,
text: string::String
}
public entry fun mint(ctx: &mut TxContext) {
let object = HelloWorldObject {
id: object::new(ctx),
text: string::utf8(b"Hello World!")
};
transfer::public_transfer(object, ctx.sender());
}
}
The text was updated successfully, but these errors were encountered:
https://metaschool.so/courses/build-on-move-on-sui-and-explore-its-applications/lesson/1f15e1bb-7023-4487-ab7d-21233318af91
The demo code no longer meets the requirements of the current Sui version, and the public struct must be used at present. Other import statements can be condensed:
The text was updated successfully, but these errors were encountered: