Move.

Publicación

Comparte tu conocimiento.

mssoni.
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

1
Grizzly.
Feb 17 2025, 15:38

Es posible que desees comprobar si estás utilizando la intención correcta para la transacción. Intenta usar la CoinWithBalanceintención tal y como se describe en la documentación oficial de Mysten Labs, aquí: Mysten Labs SDK. CommandArgumentErrorEsto podría ayudar a resolver el.

0
Comentarios
.

Sabes la respuesta?

Inicie sesión y compártalo.

Usamos cookies para asegurarnos de que obtenga la mejor experiencia en nuestro sitio web.
Más información