使用 Fift 创建吨钱包失败?

Failed to create wallet for ton with Fift?

现在我正在尝试为 TON 创建钱包。

我下载并构建了 Fift 解释器,并尝试使用以下命令创建新钱包:./crypto/fift new-walelt.fif

 [ 1][t 0][1559491459.312618017][fift-main.cpp:147] Error interpreting standard preamble file `Fift.fif`: cannot locate file `Fift.fif`
 Check that correct include path is set by -I or by FIFTPATH environment variable, or disable standard preamble by -n.

虽然我的路径变量已设置。谁能帮我解决这个问题?

您是否尝试过 ./crypto/fift -I<source-directory>/crypto/fift new-wallet.fif 而不是设置环境变量? Fift.fif 和 Asm.fif 库文件是否在 FIFTPATH 中?

确保您已遵循此处编写的所有说明:

https://test.ton.org/HOWTO.txt

如果您正确执行上述所有说明,它应该会起作用。如果不是,则可能是一个错误。请记住,TON 处于非常早期的测试阶段。您可以在这里提交问题:

https://github.com/copperbits/TON/issues

首先,找到{{lite-client-source-direcotry}}/crypto/fift

这是不是构建目录,这是源文件(您下载的lite-client)所在的目录。所以确认你有它包含 Fift.fif 文件。

如果安装在用户工作目录下,应该是:

~/lite-client/crypto/fift/

现在,您应该将 FIFTPATH 变量设置为指向此目录,或者 运行 使用 -I 选项进行 fift:

export FIFTPATH=~/lite-client/crypto/fift/
./crypto/fift new-walelt.fif

./crypto/fift -I~/lite-client/crypto/fift/ new-walelt.fif

你也可以使用这个:

cd ~/liteclient-build
crypto/fift -I/root/lite-client/crypto/fift/lib -s /root/lite-client/crypto/smartcont/new-wallet.fif -1 wallet_name

试试这个(对我有用)

export FIFTPATH=~/lite-client/crypto/fift/lib

./crypto/fift new-wallet.fif