-
Notifications
You must be signed in to change notification settings - Fork 192
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is not completely working. I updated the sample contract from the issue to look like this
def main(cmd, args):
print(args[0])
if cmd == 1:
return args[0] == 'aa'
if cmd == 2:
x = args[1]
return x[0] == 'helloworld'
if cmd == 3:
lvl1 = args[1]
lvl2 = lvl1[1]
return lvl2[0] == 'helloworld'
invoke and results in
neo> sc build_run sc.py False False False 0210 01 3 ['notused',['notused',['helloworld']]]
Saved output to steven.avm
run `sc build_run help` to see supported queries
where I expect
Test deploy invoke successful
Used total of 61 operations
Result [{'type': 'Boolean', 'value': True}]
Invoke TX gas cost: 0.0001
@ixje I haven't been able to figure out the issue yet. If you run this test:
it passes. This is the error that is causing the problem.
Do you see what is wrong? I will keep working on it. |
neo-python/neo/VM/ScriptBuilder.py Line 91 in 7e29227
|
- iterate using a single [new] function: process_params - removed parse_params arg from TestInvokeContract to be able to reuse process_params
…into fix-inputparser
@ixje okay, how about now? |
thanks! |
100 points |
Hello, when this fix will be available in master? |
We are currently auditing the Mainnet to ensure correctness with the latest |
In the meantime you could cherry pick this PR |
What current issue(s) does this address, or what feature is it adding?
How did you solve this problem?
trial and error
How did you make sure your solution works?
manual testing and
make test
Are there any special changes in the code that we should be aware of?
no
Please check the following, if applicable:
make lint
?make test
?CHANGELOG.rst
? (if not, please do)