天秤座:[错误]无法执行交易:交易失败,虚拟机状态:验证(UnknownScript)

Libra: [ERROR] Failed to perform transaction: Transaction failed with vm status: Validation(UnknownScript)

我正在关注 My First Transaction, everything worked fine until Submit a Transaction. As mentioned in the following document, I tried to submit a transaction. https://developers.libra.org/docs/my-first-transaction#submit-a-transaction

上的 Libra 文档

但它失败并出现以下错误,尝试阅读疑难解答文章,但没有太大帮助。

libra% transfer 0 1 10
>> Transferring
[ERROR] Failed to perform transaction: Transaction failed with vm status: Validation(UnknownScript)
libra% 

想知道是否有人能够成功提交交易。

OS: macOS

您似乎是在 master 分支之外构建客户端 cli,您可能需要使用 testnet 来构建。我遇到了同样的问题,切换到testnet分支后它起作用了。

$ git checkout testnet

$./scripts/cli/start_cli_testnet.sh 
.
.
.
libra% transfer 0 1 10
>> Transferring
Transaction submitted to validator
To query for transaction status, run: query txn_acc_seq 0 0 <fetch_events=true|false