Move.

Expert Q&A

Expert advice available.

Posts

24
  • Pluto Dev👽.
    Dec 04, 2024
    Expert Q&A
    VMVerificationError in Move IDO contract

    What might be causing the VMVerificationOrDeserializationError in the fund_ido function of the Sui Move contract?

    • Move CLI
    • Smart Contract
    2
    4
    Best Answer
  • Theoremus.
    Dec 03, 2024
    Expert Q&A
    How to create one-time witness in Move module

    How can I create an OTW and pass the check is_one_time_witness function(in create_currency function) for testing in Sui Move?

    • Move Module
    • Move Bug
    1
    1
  • elfDani.
    Dec 02, 2024
    Expert Q&A
    What is the 'native' keyword in Move?

    What is the 'native' keyword in Move?

    • Move CLI
    • Move Bug
    2
    1
    Best Answer
  • farshad.
    Dec 01, 2024
    Expert Q&A
    Is there a ternary operator in the Move programming language?

    Is there a ternary operator in the Move programming language?

    • Move
    • Move Bug
    2
    2
    Best Answer
  • skywinder.
    Dec 01, 2024
    Expert Q&A
    How can I store global variables in Move smart contracts effectively?

    How can global variables be stored in Move smart contracts effectively?

    • Move CLI
    • Move
    1
    3
    Best Answer
  • CarlkawIy.
    Nov 27, 2024
    Expert Q&A
    SUI transfer in Smart Contract code

    How can I correctly implement the transfer of SUI to a specific wallet address using smart contract code?

    • Move CLI
    • Smart Contract
    3
    3
    Best Answer
  • Raju.
    Nov 27, 2024
    Expert Q&A
    Is there a function or module in Move to get coin balances from a specific SUI address?

    Is there a function or module in Move to get coin balances from a specific SUI address?

    • Move CLI
    • Move
    2
    2
    Best Answer
  • shubz.
    Oct 04, 2024
    Expert Q&A
    hello community

    How can I implement an NFT in Sui where the original minter retains full control (ownership) over minting, updating, and burning the NFT, even after the NFT is shared or transferred to other users? I want the shared users to only be able to view and transfer the NFT, but not modify or destroy it. Is there a specific design pattern or module I can follow to achieve this behavior in Sui?

    • Move
    • Smart Contract
    0
    0
  • Steven.
    Nov 16, 2023
    Expert Q&A
    How can I obtain a comprehensive list of Move module (s) within the 0x2 Move package?

    How can I obtain a comprehensive list of modules within the 0x2 package that can send SUI, apart from the known Move modules like 'pay', 'pay_sui', 'transfer', and 'sui'? I initially checked the explorer.sui.io platform and used the provider.getNormalizedMoveModulesByPackage('0x2') method, but I noticed discrepancies, such as the transfer_object Move module not appearing in the list provided by the explorer and the method. Also, I am struggling with filtering events correctly using provider.getEvents due to stability issues on the devnet, resulting in frequent timeouts. Can someone guide me on the correct approach to obtain this information and handle event filtering more effectively?

    • Move Module
    1
    2
  • Steven.
    Nov 16, 2023
    Expert Q&A
    How to Read a Constant Return Value from a Move Function Using BCS in Sui TS SDK?

    I have a Move function that returns a constant value as follows: const FEE: u64 = 1_000_000 public fun fee(): u64 { FEE } When I make a moveCall using the Sui TS SDK, I receive encoded values like this: javascript Copy code returnValues: [ [ [ 64, 66, 15, 0, 0, 0, 0, 0 ], "u64" ] ] I understand that I need to decode these values using the BCS library to obtain a readable output. However, I am unsure how to achieve this. I attempted to use bcs.registerStructType, but it seems this approach does not work because the return value is not a struct. Could someone please provide guidance on how to decode and read this constant return value using the BCS library in the Sui TS SDK?

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