Sui.

专家问答

向Peera社区的专家提问

帖子

259
过滤:所有社区
  • hohm.Peera.
    MoveFeb 17, 2025
    专家问答

    How 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
    1
    1
  • mssoni.Peera.
    MoveFeb 17, 2025
    专家问答

    How 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
    1
    1
  • doodee.Peera.
    MoveFeb 17, 2025
    专家问答

    How 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
    1
    2
  • elfDani.Peera.
    SuiFeb 17, 2025
    专家问答

    How 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
    0
    2
  • mssoni.Peera.
    MoveFeb 17, 2025
    专家问答

    How 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
    1
    2
  • jogador_1.Peera.
    SuiFeb 17, 2025
    专家问答

    Why 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
    1
    2
  • kryptoschain.Peera.
    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
    0
    2
  • Ramirez.Peera.
    SuiFeb 13, 2025
    专家问答

    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
    0
    1
  • farshad.Peera.
    MoveFeb 13, 2025
    专家问答

    How 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
    0
    1
  • kryptoschain.Peera.
    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
    1
    1
我们使用 cookie 确保您在我们的网站上获得最佳体验。
更多信息