Move.

Discussions

Share your thoughts with Move community

Posts

21
  • elfDani.
    Apr 05, 2025
    Discussion

    Is Otw available only for the first time?

    I'm trying to understand if the Otw functionality is meant to be called only once, especially in the context of initializing or creating a coin. Could someone explain its purpose?

    • Move CLI
    0
    1
  • andreweth..
    Apr 03, 2025
    Discussion

    Best way to handle a unique user registry on Sui?

    I'm trying to set up a unique registry of user names on Sui and am considering using vec_set. I'm concerned about its scalability. Is this the only way, and how does it scale on Sui?

    • Move CLI
    2
    2
  • Aliabee.
    Mar 31, 2025
    Discussion

    Where to find the latest Move 2024 documentation and features?

    I'm trying to locate the latest Move 2024 docs as it seems there are numerous new features. Can someone guide me on where to find these details?

    • Move CLI
    • Move
    1
    1
  • MetaInvestor.
    Mar 29, 2025
    Discussion

    Best place to learn Move for beginners?

    Guys I want to make dapps on sui and was wondering if anyone can give the best place to learn move lang

    • Move
    • Move Script
    0
    0
  • Mister_CocaCola.
    Mar 28, 2025
    Discussion

    Performance difference between modulo and comparison assertions?

    I'm curious if using assert!(arg3 % arg0 == 0, 6); is more gas efficient than assert!(arg3 < arg0, 6);? I came across this in deepbook and was wondering about the choice. Is there any significant performance difference between using modulo versus comparison assertions in terms of gas consumption?

    • Move CLI
    • Move
    1
    1
    Best Answer
  • mssoni.
    Mar 28, 2025
    Discussion

    How can I create enums using Sui TypeScript SDK?

    I've been trying to work with enums in the Sui TypeScript SDK, as I want to pass an enum type into my PTB command. Does anyone know how I can achieve this in Sui TS SDK?

    • Move CLI
    1
    1
  • Tawhid.
    Mar 27, 2025
    Discussion

    Move language resources: move-book.com or sui foundation GitHub?

    Hey folks, I'm just starting out with the Move programming language. I came across two resources: the Move book available at move-book.com and the sui-move-intro-course hosted on the sui foundation GitHub. I'm curious, which one is more up to date or is generally recommended for beginners?

    • Move CLI
    • Move
    0
    1
  • Aliabee.
    Mar 16, 2025
    Discussion

    Should Metadata be Owned, Shared, or Frozen in Sui Move?

    I'm working on creating a new coin using Sui Move, and I'm not sure whether to make the Metadata object owned, shared, or frozen. I'm leaning towards freezing it, but I'm curious about the consequences of each choice. Can freezing the Metadata object cause any problems aside from making it unchangeable, and are there any drawbacks to having it as owned or shared?

    • Move CLI
    • Move
    1
    2
    Best Answer
  • Theoremus.
    Mar 13, 2025
    Discussion

    Looking for a functional Move code playground online

    Has anyone found a working platform to deploy or compile Move code online? I'm aware of Pontem version, but it doesn't seem to work for me. I need a tool where I can try out Move language. Any suggestions?

    • Move CLI
    • Move
    1
    1
    Best Answer
  • mssoni.
    Mar 11, 2025
    Discussion

    How do I fix a type mismatch error in a Move transaction?

    I'm working on a transaction in Move language involving a purchase function for a kiosk, but I keep hitting an error indicating a type mismatch, specifically EFieldTypeMismatch: u64 = 2 from dynamic_field.move. I've tried using BUYER_KIOSK instead of BUYER, but with no success. The transaction script involves splitting coins, assigning to coin, making move-calls, and confirming requests, but it fails at remove_child_object. Could this error be due to the incorrect type for function arguments? How can I resolve this? (\ PRICE="5000000000"; \ PACKAGE="0x4"; \ PURCHASE_COIN="0x5"; \ ITEM="0x6"; \ ITEM_TRANSFER_POLICY_TYPE=">"; \ ITEM_TRANSFER_POLICY="0x7"; \ SELLER_KIOSK="0x8"; \ BUYER_KIOSK="0x9"; \ BUYER="0x10"; \ sui client ptb \ --split-coins @$PURCHASE_COIN "[$PRICE]" \ --assign coin \ --move-call 0x2::kiosk::purchase "" @$SELLER_KIOSK @$ITEM coin.0 \ --assign purchase_result \ --move-call 0x2::transfer_policy::confirm_request $ITEM_TRANSFER_POLICY_TYPE @$ITEM_TRANSFER_POLICY purchase_result.1 \ --move-call 0x2::transfer::public_transfer "" purchase_result.0 @$BUYER \ --gas-budget 1000000000 \ --json\ ) `

    • Move CLI
    • Move
    2
    2
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Top tags
  • Move CLI
  • Move
  • Move Bug
  • Move Module
  • Move Script
  • Smart Contract
  • Move Prover
  • Feature Request
We use cookies to ensure you get the best experience on our website.
More info