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

fix: implement as_wei_value for all numeric type #3498

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

trocher
Copy link
Contributor

@trocher trocher commented Jul 15, 2023

What I did

Fixed #3281

How I did it

Added the required IR for all signed and unsigned types.

How to verify it

See the tests.

Commit message

fix: implement as_wei_value for all numeric type

Description for the changelog

implement as_wei_value for all numeric type

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@codecov-commenter
Copy link

codecov-commenter commented Jul 15, 2023

Codecov Report

Merging #3498 (6916dda) into master (593c9b8) will increase coverage by 0.03%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #3498      +/-   ##
==========================================
+ Coverage   89.17%   89.21%   +0.03%     
==========================================
  Files          84       84              
  Lines       10882    10882              
  Branches     2488     2488              
==========================================
+ Hits         9704     9708       +4     
+ Misses        767      765       -2     
+ Partials      411      409       -2     
Impacted Files Coverage Δ
vyper/builtins/functions.py 90.66% <100.00%> (+0.15%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@charles-cooper
Copy link
Member

@trocher i merged in master and simplified the code

paging @cyberthirst for review

@charles-cooper charles-cooper added this to the v0.4.2 milestone Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CompilerPanic if as_wei_value is passed a numeric type other than uint256, uint8, int128, decimal
3 participants