-
-
Notifications
You must be signed in to change notification settings - Fork 793
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
feat[lang]: rename _abi_encode
and _abi_decode
#4097
feat[lang]: rename _abi_encode
and _abi_decode
#4097
Conversation
rename to `abi_encode` and `abi_decode` respectively leave the old ones in, but with deprecation warnings
🔥 |
_abi_encode
and _abi_decode
are we abandoning the idea of using |
i think we can update the docs too in this PR |
would like to see at least a few tests for the new variant |
do we need to display this to the users?
from:
|
nit: vyper/vyper/builtins/functions.py Lines 2338 to 2339 in 7ccd951
|
this won't be problematic? Line 300 in 24cfe0b
|
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.
Please also fix the docs and add a note in the docs for _abi_encode
and _abi_decode
. Something like:
The syntax `_abi_encode` has been deprecated from version 0.4.0 onwards. Please use `_abi_encode` operator instead.
The syntax `_abi_decode` has been deprecated from version 0.4.0 onwards. Please use `abi_decode` operator instead.
would love to have |
i think that's just a function of how |
hmm yea, it will make some tests fail once we update the usages in the test suite |
yea, at least for now. it's a less trivial change, we have no machinery for it right now |
### 🕓 Changelog The Vyper PR vyperlang/vyper#4097 renamed `_abi_encode` and `_abi_decode` to `abi_encode` and `abi_decode` respectively. This PR applies these new syntax rules to all 🐍 snekmate contracts (if applicable). Furthermore, I simplify the glob pattern that excludes the compilation of non-mock files. --------- Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
What I did
How I did it
How to verify it
Commit message
Description for the changelog
Cute Animal Picture