• Discover
  • Partner with us
  • Chapters
  • Blog

Learn everything about Move on Sui

Blockchain Basics
Blockchain Ecosystem Deep Dive
Blockchain Ecosystem Deep Dive - Layer 1s & Layer 2s
How Do Layer 1s and Layer 2s Work Together?

Introduction
DPos vs Pos
What is Next?
Object Centric Design-1
Object Centric Design-2
Real-Life Examples
Performable Transaction
Move on Sui

Architecture and Components
Sui Network
Sui Storage
Sui Compiler
Sui SDK

Remix IDE for Move on Sui
Install Sui on Windows
Install Sui on Mac
Install Sui on Linux
Project Structure and Modules
Structs and Objects
Init Function
Functions
Testing

Data Section
Functions 1
Functions 2
Deployment
Homework - Submit Your Repository

Interacting with Sui Blockchain from the Frontend
Interacting with Sui Blockchain from the Frontend-2
What is ZkLogin?
How ZkLogin Works?
Some Use Case Examples - ZkLogin
For More About ZkLogin
Sponsored Transactions

Final Project Sample Ideas
Submit Your Final Project
  • In this lesson, you are going to create three more functions.
  • With the update_card_description function, users will be able to update their card's description.
  • With the deactivate_card function, users will be able to indicate that they are no longer to open to work.
  • Finally you will create a public function which will return the card information based on the given id.

You can access the codes we wrote in this lesson below. 👇

 // With this function the user can change his/her card's description
  public entry fun update_card_description(devhub: &mut DevHub, new_description: vector<u8>, id: u64, ctx: &mut TxContext) {
    let user_card = object_table::borrow_mut(&mut devhub.cards, id);
    assert!(tx_context::sender(ctx) == user_card.owner, NOT_THE_OWNER);
    let old_value = option::swap_or_fill(&mut user_card.description, string::utf8(new_description));

    event::emit(DescriptionUpdated {
      name: user_card.name,
      owner: user_card.owner,
      new_description: string::utf8(new_description)
    });

    _ = old_value;
  }

  // With this function user can deactivate his/her account by setting open_to_work field of his/her card to false
  public entry fun deactivate_card(devhub: &mut DevHub, id: u64, ctx: &mut TxContext) {
    let card = object_table::borrow_mut(&mut devhub.cards, id);
    assert!(card.owner == tx_context::sender(ctx), NOT_THE_OWNER);
    card.open_to_work = false;
  }

  // This function returns the card based on the id provided
  public fun get_card_info(devhub: &DevHub, id: u64): (
    String,
    address,
    String,
    Url,
    Option<String>,
    u8,
    String,
    String,
    String,
    bool,
  ) {
    let card = object_table::borrow(&devhub.cards, id);
    (
      card.name,
      card.owner,
      card.title,
      card.img_url,
      card.description,
      card.years_of_exp,
      card.technologies,
      card.portfolio,
      card.contact,
      card.open_to_work
    )
  }


Previous
Next

Lesson discussion

Swap insights and ask questions about “Learn everything about Move on Sui”.

Enroll to participate
Start the course to unlock the discussion. Enrolling helps us keep conversations relevant to learners.
WebsiteDiscoverPartner with UsBlogEvents
Discover
CoursesCircleRustSoliditySolanaWeb3 FundamentalsBlockchain Basics
CompanyAbout UsBrand GuidelineFAQsTerms of UsePrivacy PolicyGDPR NoticeCookies
Don't miss any update!

Disclaimer: The information, programs, and events provided on https://risein.com is strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice, nor do we make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://risein.com disclaims any responsibility for financial decisions made by users based on the information provided here.

© 2026 Rise In, All rights reserved