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

compiler: refactor AppCall #651

Merged
merged 4 commits into from
Feb 10, 2020
Merged

compiler: refactor AppCall #651

merged 4 commits into from
Feb 10, 2020

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Feb 10, 2020

  1. Make AppCall accept varargs.
  2. Fix a bug with argument order on stack.

Extract logic of reversing top n items of the stack
in a separate function.
Invoked contract is expecting first argument to be on top of the stack.
Change test to use non-commutative operation to catch this behaviour.
@codecov
Copy link

codecov bot commented Feb 10, 2020

Codecov Report

Merging #651 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #651      +/-   ##
==========================================
+ Coverage   65.07%   65.09%   +0.01%     
==========================================
  Files         125      125              
  Lines       10560    10565       +5     
==========================================
+ Hits         6872     6877       +5     
  Misses       3410     3410              
  Partials      278      278              

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 268cad5...8947f39. Read the comment docs.

@roman-khimov roman-khimov added this to the v0.73.0 milestone Feb 10, 2020
@roman-khimov roman-khimov added the bug Something isn't working label Feb 10, 2020
@roman-khimov roman-khimov merged commit f148798 into master Feb 10, 2020
@roman-khimov roman-khimov deleted the fix/appcall branch February 10, 2020 09:17
@roman-khimov roman-khimov modified the milestones: v0.73.0, v0.72.2 Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler Go smart contract compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants