Пост
Поделитесь своими знаниями.
mssoni30
Feb 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
Поделиться
Комментарии
Ответы
1Grizzly25
Feb 17 2025, 15:38Возможно, вы захотите проверить, правильно ли вы используете цель транзакции. Попробуйте использовать CoinWithBalance
намерение, как описано в официальной документации Mysten Labs здесь: Mysten Labs SDK. CommandArgumentError
Это может помочь в решении этой проблемы.
0
Комментарии
Знаете ответ?
Пожалуйста, войдите в систему и поделитесь им.
Move is an executable bytecode language used to implement custom transactions and smart contracts.
98Посты158Ответы
Популярные посты