Экспертные Вопросы и Ответы
Задавайте вопросы экспертам сообщества Peera
Посты
259How to fix 'UnusedValueWithoutDrop' error in PTB function?
I'm trying to create a contract interaction function similar to a given transaction hash but face an error during execution. The error message is UnusedValueWithoutDrop { result_idx: 0, secondary_idx: 0 }. It appears in the dry run result of the PTB function. I suspect it might be due to an object not being properly handled by the end of the transaction. I attempted to use MoveCall, but I'm not sure if my approach is correct. Can someone advise me on correctly handling this issue?
- Move CLI
- Move
11How to resolve CommandArgumentError with tx failed issue?
I've been trying to execute a transaction using the CommandArgumentError { arg_idx: 1, kind: InvalidBCSBytes } error. Here's the snippet I used: const tx = new Transaction(); const [newCoin] = tx.splitCoins( tx.object(coinObjectId), [1000] ); tx.transferObjects([newCoin], tx.pure.string(wallet.address || "")); tx.setGasBudget(750000); const result = await wallet.signAndExecuteTransaction({ transaction: tx, }); I've tried using tx.pure.u64 but it didn't help. Any solutions?
- Move CLI
11How to properly pass BCS serialized struct parameters in Sui?
I've been trying to pass BCS serialized struct parameters to a move module in the Sui blockchain, but I'm hitting an InvalidUsageOfPureArg error. Can Sui handle BCS serialized struct parameters directly, or do I need to create a struct object first and pass it to the move module? How should I structure my code to achieve this?
- Move CLI
12How to monitor Sui transactions in a wallet app?
I'm adding Sui support to an existing wallet app and need to track blockchain transactions for wallet accounts to detect deposits and update balances. Is there a straightforward method to achieve this without implementing a complex indexer? Is there an event I can monitor using the Sui SDK?
- Sui
- Architecture
02How to call a function from another Move contract?
I've deployed a contract with an address 0x3df... and a public function 'coll'. Now, I'm trying to write another contract that calls this 'coll' function, but I'm getting an error saying 'use 0x3df...::coll; use is invalid. Unbound module'. I've seen suggestions about using a dependencies file but I'm not sure how to implement this properly. What steps should I take to resolve the error and successfully call the function?
- Move CLI
- Move
12Why does 'sui client verify-source' show an error?
Hey folks, I'm running into a snag with the command sui client verify-source. It keeps spitting out this error: Invalid module with error: Can't verify unpublished source. What could possibly be going wrong here? Is it because of on-chain package issues?
- Sui
- Architecture
12- Экспертные Вопросы и ОтветыДляMoveFeb 14, 2025
How to call `public fun`s from Sui framework using CLI?
Hey folks, I'm trying to call public functions from the Sui framework using the Sui CLI. For instance, if someone transfers an object to me and I don't want it, how can I freeze it? I thought about using sui client call, but I'm having trouble with the module identifier. Is publishing a wrapper package the only way, or is there a CLI command I'm missing?
- Move CLI
- Move
02 How to stop Auto-reconnect with SuiWallet using dapp-kit?
I'm working on a bridge app between Ethereum and Sui using MetaMask and SuiWallet. I've managed to get the connection part working. However, when I try to disconnect from the SuiWallet, the app automatically reconnects. I'm using dapp-kit for this project. I'm curious if anyone else has faced this issue and how to resolve the auto-reconnect problem?
- Sui
01How to handle function signature changes in SUI Move Package
I'm working on a SUI Move package and encountered an error when I tried to change a function signature. The error message is 'PackageUpgradeError { upgrade_error: IncompatibleUpgrade }'. How can I upgrade the package with the new function signature without causing errors?
- Move CLI
01- Экспертные Вопросы и ОтветыДляMoveFeb 13, 2025
Can I assign a specific ID to a shared object in Move?
I'm trying to create a shared object within the init function of a Move module and want to assign it a specific predetermined ID like 0x123. Is this possible, or do I need to follow another approach?
- Move CLI
11
- 265
- 253
- 246
- 231
- 227
- 206
- 203
- 193
- 171
- 167
- Sui
- IPFS
- Move CLI
- SDKs and Developer Tools
- Move
- Architecture
- Kubo
- IPNS
- NFT Ecosystem
- IPFS Node
- How to access and manage nested structs and dynamic fields in Move?56
- Sui memes DEX options and chart44
- Как преобразовать закрытый ключ в новый формат с помощью интерфейса командной строки33
- Можете ли вы экспортировать официальный кошелек Sui в Razor или другие кошельки Sui? 32
- 'DataClone Failed to execute' error33