Skip to content

No output with testinvoke #3

@zioalex

Description

@zioalex

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions