Migrate types from `num` to `int`
See original GitHub issueIssue
num
and num256
type in vyper are being deprecated in favor of int128
and uint256
, respectively.
Proposed implementation
- convert references of
num
toint256
- convert references of
num256
touint256
- convert type casting from
as_TYPE
usage to newerconvert(var,
type)
format. (all type castings not justint
/uint
) - migrate validator_service.py and update testing accordingly
- ensure vyper up to date such that it can handle these types
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Type migration | IntelliJ IDEA Documentation - JetBrains
The Type Migration refactoring lets you automatically change a member type (such as from integer to string), and data flow dependent type entries...
Read more >How To Convert Data Types in Python 3 - DigitalOcean
This Python 3 tutorial will guide you through converting data types including numbers, strings, tuples and lists, as well as provide ...
Read more >Convert Double to Integer in Java - GeeksforGeeks
Write a Java program to convert the given double number into an Integer (int) in Java. Examples: Input: double = 3452.234 Output: 3452...
Read more >Rails Migration to convert string to integer using conversion
When you write Rails migrations to convert a string column to an integer ... to type integer HINT: Specify a USING expression to...
Read more >convert
convert must be used in conjunction with data type conversion functions: chr converts to character. num converts to numeric. int converts to integer....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem is the docs are not up to date, I am currently working on updating and improving them. So this
as_num256(1)
should be changed to this:convert(1, 'uint256')
. (You can see if you try to compile withas_uint256()
it will give an error)Closing in favor of #63