Publicación
Comparte tu conocimiento.
mssoni100
Feb 17, 2025
P&R expertos
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
2
1
Cuota
Comentarios
Respuestas
1Grizzly67
Feb 17 2025, 15:38Es posible que desees comprobar si estás utilizando la intención correcta para la transacción. Intenta usar la CoinWithBalance
intención tal y como se describe en la documentación oficial de Mysten Labs, aquí: Mysten Labs SDK. CommandArgumentError
Esto podría ayudar a resolver el.
1
Comentarios
Sabes la respuesta?
Inicie sesión y compártalo.