Move.

Expert Q&A

Ask Move community experts

Sui.X.Peera.

Earn Your Share of 1000 Sui

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

Posts

124
  • Forever_A-gator.
    Apr 11, 2025
    Expert Q&A

    How to generate readable bytecode for Move with Miden Assembly?

    I'm trying to experiment with writing a Move compiler by using Miden Assembly as the compiler target. I want to generate readable bytecode for the compiled Move program. Is there a straightforward way to achieve this?

    • Move CLI
    0
    1
  • elfDani.
    Apr 11, 2025
    Expert Q&A

    Can modules generate multiple coins onchain seamlessly?

    I’m working on a module for prediction markets and need it to generate coins onchain through a factory class in a permissionless and verifiable way. Currently, modules have limitations like only one coin per module due to One Time Witness, which means I had to create an equivalent coin standard that users' wallets don't recognize as a coin. Can we resolve this in the next update?

    • Move CLI
    • Move Module
    0
    1
  • skywinder.
    Apr 10, 2025
    Expert Q&A

    What's a native function and can we call them directly?

    I've come across the term 'native function' in Move but can't find detailed information about it. I heard that they're declared in Move but defined externally, often in Rust. Does that mean they are internal functions that can't be called directly by wallets or other modules?

    • Move CLI
    • Move
    0
    1
  • kryptoschain.
    Apr 10, 2025
    Expert Q&A

    How to transfer an object owned by another object?

    I'm facing an issue with transferring an object A, which is owned by object B, and object B is owned by me. I'm getting an error saying the transaction was not signed by the correct sender. Does anyone know how to resolve this and properly receive object A?

    • Move CLI
    • Move
    0
    1
  • Pluto Dev👽.
    Apr 10, 2025
    Expert Q&A

    Converting a Public Key to Sui Address in Sui Move

    I'm trying to convert a public key into a Sui address using Sui Move but can't find any built-in function. I understand it's quite important for my work. Could someone explain how exactly to do this conversion?

    • Move CLI
    0
    1
  • yhant3.
    Apr 07, 2025
    Expert Q&A

    How to ensure only NFT owner can transfer it in a contract?

    Hey everyone! I'm working on implementing an NFT contract and want to make sure that only the rightful owner of the NFT can transfer it. I have this function for transferring: public fun transfer( nft: DevNetNFT, recipient: address, _: &mut TxContext ) { transfer::public_transfer(nft, recipient) } Is this checking done within the public_transfer method, or do I need to add additional logic?

    • Move CLI
    0
    3
  • Britain.
    Apr 07, 2025
    Expert Q&A

    How to fetch values from ObjectTable using Dynamic Fields?

    I'm trying to fetch values from an ObjectTable using Dynamic Fields from the frontend, but I'm encountering an error with dynamicFieldObject. The error says Unexpected arg String("gms") for the expected type Struct(MoveStructLayout...). How can I get the correct type for the value and avoid this error?

    • Move CLI
    • Move
    0
    3
  • Raju.
    Raju158
    Apr 06, 2025
    Expert Q&A

    How to test a function with a Receiving parameter in Sui?

    I'm trying to test the receive_object function with a Receiving parameter in Sui based on the docs at this link. Initially, I created a test using the example, but I'm struggling with how to get the sent argument to be a Receiving type. I've also tried denoting the receiving type, but encountered errors. Could someone guide me on properly testing this function?

    • Move CLI
    • Move
    0
    4
  • Santorini.
    Apr 06, 2025
    Expert Q&A

    How can I copy a vector<u64> to use multiple times?

    I'm trying to copy a vector into a local variable because I need two instances of the same vector for my project. I've seen some methods, but I'm not entirely sure how to implement them correctly. Can anyone guide me on the best practices or methods to achieve this in the Move programming language?

    • Move CLI
    • Move
    0
    4
  • yhant3.
    Apr 05, 2025
    Expert Q&A

    How to concatenate strings in Move language?

    I'm trying to concatenate two strings using the Move programming language. Can someone guide me on how to do this?

    • Move CLI
    • Move
    0
    1
We use cookies to ensure you get the best experience on our website.
More info