-
Notifications
You must be signed in to change notification settings - Fork 10
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
swap arguments for functions with more than 3 arguments #51
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.
UPDATE: More then 3 needs some adustment. Sorry was looking at 3 arguments.
When looking in the neo-boa compiler I see the exact same thing in converting 3 functions arguments.
https://github.com/CityOfZion/neo-boa/blob/master/boa/code/vmtoken.py#L424
This is working for me:
Testinvoke
|
@anthdm I think the way |
@fyrchik If you test this with your fix, there is indeed no VM.FAULT, however, the stack is not looking too good. |
@fyrchik After testing your example with |
@fyrchik UPDATE: Your fix is correct after looking at the result for this example which only works after your fix.
|
@anthdm could you please provide an example which leaves stack dirty? For me all your examples are working fine. |
…eo-storm#51) Imported from CityOfZion/neo-storm (402ebb1d6226e2a30d8fdc19663227361cc72ca0).
Proposed changes in this pull request
Functions with more than 3 arguments are not working now.
I think, I have fixed it with this pull request. What do you think?
make test
still passes all testsType (put an
x
where ever applicable)Checklist
Please put an
x
against the checkboxes. Write a small comment explaining if itsN/A
(not applicable)Extra information
Any extra information related to this pull request.