-
-
Notifications
You must be signed in to change notification settings - Fork 804
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
fix[codegen]: fix non-memory reason strings #3877
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3877 +/- ##
==========================================
- Coverage 86.36% 86.27% -0.09%
==========================================
Files 92 92
Lines 14024 14022 -2
Branches 3081 3080 -1
==========================================
- Hits 12112 12098 -14
- Misses 1484 1494 +10
- Partials 428 430 +2 ☔ View full report in Codecov by Sentry. |
@@ -1,28 +1,23 @@ | |||
import vyper.codegen.events as events | |||
import vyper.utils as util | |||
from vyper import ast as vy_ast | |||
from vyper.codegen.abi_encoder import abi_encode |
Check notice
Code scanning / CodeQL
Cyclic import Note
vyper.codegen.abi_encoder
fix code generation for non-memory reason strings. previously, the byte array copier would fail trying to produce code for the buf, which was an int rather than an IRnode. this commit cleans up the revert generation code, allocates a fresh buffer to avoid memory cleanliness issues, and refactors the code to use abi_encoder code instead of handrolling the ABI encoding routine. --------- Co-authored-by: Charles Cooper <[email protected]>
What I did
Fix #3787, fix #3251
How I did it
Made recommended fix.
How to verify it
See tests
Commit message
Description for the changelog
Cute Animal Picture