Publication
Partagez vos connaissances.
mssoni30
Feb 17, 2025
Questions et Réponses avec des Experts
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
Partager
Commentaires
Réponses
1Grizzly25
Feb 17 2025, 15:38Vous souhaiterez peut-être vérifier si vous utilisez la bonne intention pour votre transaction. Essayez d'utiliser l'CoinWithBalance
intention décrite dans la documentation officielle de Mysten Labs ici : Mysten Labs SDK. Cela pourrait aider à résoudre leCommandArgumentError
.
0
Commentaires
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.
Move is an executable bytecode language used to implement custom transactions and smart contracts.
98Publications158Réponses
Publications tendance