Discussions
Share your thoughts with Move community
Posts
21- DiscussionelfDani139Apr 05, 2025
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
01 - Discussionandreweth.148Apr 03, 2025
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
22 - DiscussionAliabee59Mar 31, 2025
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
11 - DiscussionMar 29, 2025
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
00 - DiscussionMar 28, 2025
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
11Best Answer - Discussionmssoni95Mar 28, 2025
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
11 - DiscussionTawhid128Mar 27, 2025
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
01 - DiscussionAliabee59Mar 16, 2025
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
12Best Answer - DiscussionTheoremus251Mar 13, 2025
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
11Best Answer - Discussionmssoni95Mar 11, 2025
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
22
- Move CLI
- Move
- Move Bug
- Move Module
- Move Script
- Smart Contract
- Move Prover
- Feature Request