Publicación
Comparte tu conocimiento.
mssoni30
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
1
1
Cuota
Comentarios
Respuestas
1Grizzly25
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.
0
Comentarios
Sabes la respuesta?
Inicie sesión y compártalo.
Move is an executable bytecode language used to implement custom transactions and smart contracts.
98Publicaciones158Respuestas
Publicaciones populares