Hi everyone,
I'm trying to run https://github.com/disintar/task-1-playground
toncli run_tests
gives the following:
disintar.io NFT owners today say: 🙈 🙉 🙊
INFO: 🌈 Start tests
/home/USER/Documents/TON/task-1-playground/func/code.fc:19:12: error: undefined function `in_msg`, defining a global function of unknown type
throw_if(in_msg.slice_bits() < 32);
^
/home/USER/Documents/TON/task-1-playground/func/code.fc:19:37: error: cannot apply function throw_if : (int, int) -> () to arguments of type int: cannot unify type int with (int, int)
throw_if(in_msg.slice_bits() < 32);
^

Traceback (most recent call last):
File "/home/USER/.local/bin/toncli", line 8, in
sys.exit(main())
File "/home/USER/.local/lib/python3.10/site-packages/toncli/main.py", line 564, in main
test_runner.run(args.contracts.split() if args.contracts else None, verbose=args.verbose)
File "/home/USER/.local/lib/python3.10/site-packages/toncli/modules/tests/tests.py", line 42, in run
fift_build(getcwd(), contracts=real_contracts, cwd=getcwd(), use_tests_lib=True)
File "/home/USER/.local/lib/python3.10/site-packages/toncli/modules/utils/func/commands.py", line 44, in build
build_files(contract.func_files_locations, contract.to_save_location, func_args, cwd,
File "/home/USER/.local/lib/python3.10/site-packages/toncli/modules/utils/func/commands.py", line 65, in build_files
get_output = subprocess.check_output(build_command, cwd=getcwd() if not cwd else os.path.abspath(cwd))
File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/func', '-o', '/home/USER/Documents/TON/task-1-playground/build/contract.fif', '-SPA', '/home/USER/.config/toncli/func-libs/stdlib-tests.func', '/home/USER/Documents/TON/task-1-playground/func/code.fc']' returned non-zero exit status 1.

Apr 7, 2022, 7:01 PM
Ok, so it's the expected output
Apr 7, 2022, 7:06 PM

© 2024 Draquery.com All rights reserved.