Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bug in pure access analysis #3902

Closed
pcaversaccio opened this issue Apr 2, 2024 · 1 comment
Closed

bug in pure access analysis #3902

pcaversaccio opened this issue Apr 2, 2024 · 1 comment
Labels
bug - type 0 compiler halts or panics instead of generating code
Milestone

Comments

@pcaversaccio
Copy link
Collaborator

Version Information

  • vyper Version (output of vyper --version): 0.4.0b6+commit.20432c50
  • OS: linux
  • Python Version (output of python --version): 3.11.3

What's your issue about?

The commit 20432c5 introduced a regression. Repro example: Compile this contract and the line raises with:

Error compiling: src\snekmate\tokens\ERC721.vy
vyper.exceptions.InvalidReference: not a variable or literal: 'uint256'

  contract "src\snekmate\tokens\ERC721.vy:1306", function "_try_recover_vrs", line 1306:49
       1305     """
  ---> 1306     assert s <= convert(_MALLEABILITY_THRESHOLD, uint256), "ECDSA: invalid signature `s` value"
  -----------------------------------------------------------^
       1307
@pcaversaccio pcaversaccio added the bug - type 0 compiler halts or panics instead of generating code label Apr 2, 2024
@charles-cooper charles-cooper added this to the v0.4.0 milestone Apr 2, 2024
@charles-cooper
Copy link
Member

charles-cooper commented Apr 3, 2024

fixed by #3906

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug - type 0 compiler halts or panics instead of generating code
Projects
None yet
Development

No branches or pull requests

2 participants