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

compiler panic with mutating code inside non-mutable function #3554

Closed
charles-cooper opened this issue Aug 6, 2023 · 2 comments
Closed
Labels
bug - type 0 compiler halts or panics instead of generating code

Comments

@charles-cooper
Copy link
Member

Version Information

  • vyper Version (output of vyper --version): 0.3.9
  • OS: osx/linux/win
  • Python Version (output of python --version):
    repro:
# @version 0.3.9

from vyper.interfaces import ERC20

@external
@view
def topup(amount: uint256):
    assert self.token.transferFrom(msg.sender, self, amount)
@charles-cooper charles-cooper added the bug - type 0 compiler halts or panics instead of generating code label Aug 6, 2023
@trocher
Copy link
Contributor

trocher commented Aug 7, 2023

Might overlap with #3161

@charles-cooper
Copy link
Member Author

fixed in #3729

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

Successfully merging a pull request may close this issue.

2 participants