-
Notifications
You must be signed in to change notification settings - Fork 188
About NEP-5 Smart Contracts #1032
Comments
please describe the exact commands you used to build and deploy and to which network (private net, testnet?). It sounds like you're either doing a test invoke without actually permanently deploying the contract to a chain, or your local chain is out of sync. |
1- sc build using private_net. |
which exact |
I'm using neo-local , it always pulls the latest neo-python. |
Same issue here, today. It seems everything is fine, but the contract just wont get deployed. I am using the docker image: I can run things with
(noop and noopowner just return True, noopowner does a checkwitness check before) But I cannot make Unsure how to debug. Also out of frustration I tried to get my nep5token deployed on public testnet with neo-cli. That worked without any confirmation and I can call unprivileged functions on testnet.
This all needs not more examples - there are examples everywhere - but a good written one that explains the non-obvious constraints and assumptions and how to turn on debugging everywhere. |
|
no. how would I do that with neopy or neo-cli?
I later managed to do that with neoline on pubtestnet, but I failed to do that with neopy and neo-cli. how would I do that with those?
created container, opened wallet, waited 15 min, ran still only 2 deploys, that wont actually deploy, the 3. one will fail with insufficient funds. |
For neo-cli ask on the neo-cli repo. I don't know. For neo-python, use
use neo-python/neo/Core/TX/Transaction.py Lines 716 to 720 in f343df6
The conversion part is called by this neo-python/neo/SmartContract/StateReader.py Line 200 in f343df6
Sorry, no idea what is going on there then. |
I am using the template provided below :
https://github.com/CityOfZion/neo-boa/blob/master/boa_test/example/demo/NEP5.py
And neo-local , to create and deploy locally an NEP-5 token.
The process of build and deploy using the related commands runs successfully .
However the INVOKE command doesn't !
The command 'show contracts all' doesn't list this smart contract , but it shows my other non NEP-5 smart contracts.
I cannot find my contract using its hash.
The command 'show assets all' doesn't show my token either.
I can only test its functionality using build_run command, and it works.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: