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

Sui: Deploy Your First Sui Contract #623

Open
FWangZil opened this issue Aug 13, 2024 · 2 comments
Open

Sui: Deploy Your First Sui Contract #623

FWangZil opened this issue Aug 13, 2024 · 2 comments

Comments

@FWangZil
Copy link

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:

// 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());
    }
}
@Bluemainboy161671
Copy link

Sui sürümü gereksinmeleri karşılamıyor.

@Bluemainboy161671
Copy link

Ciddi bağlantı sorunları var...Cüzdanı bağlamak için Tabi.lol adresini Google bulup buradan girmeniz gerekiyor.Her girişinizi Google yapın

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

2 participants