Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIFT parameters are read as TONCLI parameters #16

Closed
SpeedK opened this issue Apr 17, 2022 · 5 comments
Closed

FIFT parameters are read as TONCLI parameters #16

SpeedK opened this issue Apr 17, 2022 · 5 comments

Comments

@SpeedK
Copy link

SpeedK commented Apr 17, 2022

.fif files can be configured via positional parameters + nominal parameters. Positional parameters work well.
Nominal parameters of FIFT dont work in toncli. Looking at the output, toncli thinks they're part of toncli nominal parameters while I want them to be FIFT parameters.
Example:
fift run .\fift\transaction.fif .\build\contract address 0 0 0.01 -C "test" Transaction
Gives
usage: toncli [-h] [-v] {start,deploy,get,send,tointeger,run_transaction,f,fc,lc,run,build,fift,lite-client,sendboc,wallet,run_tests,update_libs,func} ... toncli: error: unrecognized arguments: -C

@tvorogme
Copy link
Contributor

Try to use --fift-args "..."

@SpeedK
Copy link
Author

SpeedK commented Apr 18, 2022

>toncli fift run .\fift\transaction.fif .\build\contract kQCMSwlKGQv5nQxGG5ci0M1i3_2yp4GiwjTEi6Mq7oNEhIWK 0 0 0.01 Transaction --fift-args "-c test"
[ 4][t 0][2022-04-18 03:00:55.7492550][words.cpp:3115]  import_cmdlist_args(.\fift\transaction.fif,6)
[ 1][t 0][2022-04-18 03:00:55.7494717][fift-main.cpp:180]       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.

I use fift without problems but using --fift-args looks like requires me to configure FIFTPATH which i never did on windows. Idk if it is a bug or no so I report it

@tvorogme
Copy link
Contributor

#14 duplication

@SpeedK
Copy link
Author

SpeedK commented Apr 20, 2022

#14 duplication

I can execute without problems toncli run_tests. It's probably a different thing

@tvorogme
Copy link
Contributor

tvorogme commented Apr 20, 2022

@SpeedK I guess this is global problem of FIFTPATH in windows version of toncli. As you said:

 --fift-args looks like requires me to configure FIFTPATH which i never did on windows

On linux I have no problem with fift-args it's not necessary to add path to fift libs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants