/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:16:9: error: undefined function `now`, defining a global function of unknown type
now(), ;; unixtime
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:20:35: error: undefined function `null`, defining a global function of unknown type
unsafe_tuple([1000000000, null()]), ;; balance_remaining
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:21:9: error: undefined function `my_address`, defining a global function of unknown type
my_address(), ;; myself
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/stdlib.func:29:22: error: function `null` was already declared as an ordinary function
forall X -> X null() asm "PUSHNULL";
^

Oct 23, 2022, 5:36 AM
Does anyone know what the issue could be?
@tvorogme I'm trying to run https://github.com/disintar/task-1-playground
I don't think there is a issue in the code
The issue I think is in the configuration, but I've just compiled the binaries
Oct 23, 2022, 5:41 AM
This is deprecated repo with old code
Oct 23, 2022, 5:41 AM
Oh.
Seems that toncli sample deploy wallet does not work now
You mean that old code does not work now?
INFO: 🌈 Start tests
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:16:9: error: undefined function `now`, defining a global function of unknown type
now(), ;; unixtime
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:20:35: error: undefined function `null`, defining a global function of unknown type
unsafe_tuple([1000000000, null()]), ;; balance_remaining
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:21:9: error: undefined function `my_address`, defining a global function of unknown type
my_address(), ;; myself
Oct 23, 2022, 5:42 AM
This is first contest code, which was developed not for deployment. Only for tests. But they are written in old way, so you need something else
You can try toncli start nft_collection or something else to figure out how it work
Oct 23, 2022, 5:43 AM
(base) shendengdui@MacBook-Pro-12 test % toncli start wallet
INFO: 🐒 I'll create folder /Users/shendengdui/Desktop/test/wallet with project wallet and all needed files
INFO: 👑 Folder successfully created - happy blockchain hacking
INFO: 🐼 You now can do cd wallet and toncli deploy -n testnet
(base) shendengdui@MacBook-Pro-12 test % cd wallet
(base) shendengdui@MacBook-Pro-12 wallet % toncli deploy -n testnet
INFO: 🚀 You want to interact with your contracts ['contract'] in testnet - that's great!
INFO: ✋ Do not panic - i'm creating wallet in /Users/shendengdui/Library/Application Support/toncli, so you can easily manage your contracts
INFO: 🐒 I'll create folder /Users/shendengdui/Library/Application Support/toncli/wallet with project wallet and all needed files
INFO: 👑 Folder successfully created - happy blockchain hacking
INFO: 🐼 You now can do cd wallet and toncli deploy -n testnet
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:16:9: error: undefined function `now`, defining a global function of unknown type
now(), ;; unixtime
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:20:35: error: undefined function `null`, defining a global function of unknown type
unsafe_tuple([1000000000, null()]), ;; balance_remaining
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:21:9: error: undefined function `my_address`, defining a global function of unknown type
my_address(), ;; myself
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/stdlib.func:29:22: error: function `null` was already declared as an ordinary function
forall X -> X null() asm "PUSHNULL";
^
So basically I've run toncli start wallet
as this page https://github.com/disintar/toncli/blob/master/docs/quick_start_guide.md says
Oct 23, 2022, 5:46 AM
What version of toncli u are using?
Oct 23, 2022, 5:46 AM
INFO: v0.0.43
What do you think the issue is?
Oct 23, 2022, 5:47 AM
Strange, will check out today
Can you try install directly from git and start wallet?
pip install https://github.com/disintar/toncli.git
Oct 23, 2022, 5:49 AM
So not pip install?
Oh.
Let me try
(base) shendengdui@MacBook-Pro-12 ~ % pip install https://github.com/disintar/toncli.git
Collecting https://github.com/disintar/toncli.git
Downloading https://github.com/disintar/toncli.git
| 226 kB 860 kB/s
ERROR: Cannot unpack file /private/var/folders/45/94zqnqp12cv193w1g27tlmr80000gn/T/pip-unpack-z5uww80k/toncli.git (downloaded from /private/var/folders/45/94zqnqp12cv193w1g27tlmr80000gn/T/pip-req-build-od59cmkv, content-type: text/html; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of /private/var/folders/45/94zqnqp12cv193w1g27tlmr80000gn/T/pip-req-build-od59cmkv
Doesn't work?
Oct 23, 2022, 5:50 AM
git clone https://github.com/disintar/toncli.git && cd toncli && pip install -e .
Oct 23, 2022, 5:51 AM
I downgraded to 0.0.38 and it works now
Let me try your solution now
Same issue
Can anyone help explain how to send external message in toncli?
Oct 23, 2022, 6:53 AM

© 2024 Draquery.com All rights reserved.