Fix issue #1841#2140
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2140 +/- ##
==========================================
+ Coverage 84.90% 84.95% +0.04%
==========================================
Files 83 83
Lines 8333 8333
Branches 2012 2012
==========================================
+ Hits 7075 7079 +4
+ Misses 755 752 -3
+ Partials 503 502 -1
Continue to review full report at Codecov.
|
Contributor
|
This fix looks great! Saw your comment here #1841 (comment), @iamdefinitelyahuman and I were considering re-architecting the test suite at some point to be easier to understand where to put things. Find a good place for it for now, and we'll move it around later! |
fubuloubu
approved these changes
Sep 3, 2020
Contributor
|
Based on how we're looking to re-organize the tests, I'd place the test file in |
fubuloubu
approved these changes
Sep 3, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
Fixed issue: ABI issue with bytes and string arrays inside tuples #1841
How I did it
I modified below line:
vyper/vyper/codegen/return_.py
Line 69 in 3eb9e7a
In this line, we are checking if the return expression is an external function call, and is it is an external functional we are not encoding the data as the return from the external call is already encoded. Here we forgot to add the condition
sub.args[0].args[0].value == "staticcall"How to verify it
Run below test case: