Expert Q&A
Expert advice available.
Posts
24- VMVerificationError in Move IDO contractExpert Q&ADec 04, 2024
What might be causing the VMVerificationOrDeserializationError in the fund_ido function of the Sui Move contract?
- Move CLI
- Smart Contract
24Best Answer - How to create one-time witness in Move moduleExpert Q&ADec 03, 2024
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
11 - What is the 'native' keyword in Move?Expert Q&AelfDani23Dec 02, 2024
What is the 'native' keyword in Move?
- Move CLI
- Move Bug
21Best Answer - Is there a ternary operator in the Move programming language?Expert Q&Afarshad37Dec 01, 2024
Is there a ternary operator in the Move programming language?
- Move
- Move Bug
22Best Answer - How can I store global variables in Move smart contracts effectively?Expert Q&ADec 01, 2024
How can global variables be stored in Move smart contracts effectively?
- Move CLI
- Move
13Best Answer - SUI transfer in Smart Contract codeExpert Q&ANov 27, 2024
How can I correctly implement the transfer of SUI to a specific wallet address using smart contract code?
- Move CLI
- Smart Contract
33Best Answer - Is there a function or module in Move to get coin balances from a specific SUI address?Expert Q&ARaju22Nov 27, 2024
Is there a function or module in Move to get coin balances from a specific SUI address?
- Move CLI
- Move
22Best Answer - hello communityExpert Q&Ashubz10Oct 04, 2024
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
00 - How can I obtain a comprehensive list of Move module (s) within the 0x2 Move package?Expert Q&ASteven75Nov 16, 2023
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
12 - How to Read a Constant Return Value from a Move Function Using BCS in Sui TS SDK?Expert Q&ASteven75Nov 16, 2023
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
02
- 100
- 75
- 60
- 58
- 55
- 52
- 45
- 37
- 36
- 35
- Move
- Move CLI
- Move Module
- Move Script
- Smart Contract
- Move Bug
- Move Prover
- Feature Request