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

No output with testinvoke #3

Open
zioalex opened this issue Oct 26, 2018 · 0 comments
Open

No output with testinvoke #3

zioalex opened this issue Oct 26, 2018 · 0 comments

Comments

@zioalex
Copy link

zioalex commented Oct 26, 2018

Hi Dann! Thanks a lot for this talk really interesting. I followed it very carefully trying to mimic what you did. I created the smartcontract but when I use testinvoke I do not see the output coming from the compiled code. Can you help with it? Also which app are you using to see the privnet wallet?

I just report here the commands done:

docker pull cityofzion/neo-privatenet
docker run --rm -d --name neo-privatenet -p 20333-20336:20333-20336/tcp -p 30333-30336:30333-30336/tcp cityofzion/neo-privatenet

docker exec -it neo-privatenet /bin/bash
rm -rf /root/.neopython/Chains/privnet/
neopy
create wallet privnet1
pw: neocamp2018
import wif KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr
open wallet privnet1
pw: MyPW
build ./neosense.py
import contract ./neosense.avm 8172 01 True False False
...
...
{
 55         "hash": "0x20e01f4299ba22b1d151a7ec6c15eb2034e26ae2",
...
...
Results:
[<neo.Core.State.ContractState.ContractState object at 0x7f5ddd736a58>]
Deploy Invoke TX GAS cost: 490.0
Deploy Invoke TX Fee: 0.0

testinvoke 0x20e01f4299ba22b1d151a7ec6c15eb2034e26ae2 RegisterProduct ['AHN16o8aLv1y1fiY5xBqXBmshBneWZrHth','MyFirstProduct']

Used 1.393 Gas

--------------------------------------------------
Test invoke successful
Total operations: 145
Results [{'type': 'Integer', 'value': '1'}]
Invoke TX GAS cost: 0.0
Invoke TX fee: 0.0001

I cannot figure out the problem. Do you have any idea? Which tools can I use to debug it?

@zioalex zioalex changed the title No output teh testinvoke No output with testinvoke Oct 26, 2018
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

1 participant