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

flags aren't supported in decode_vyper_object #354

Open
cyberthirst opened this issue Dec 5, 2024 · 0 comments
Open

flags aren't supported in decode_vyper_object #354

cyberthirst opened this issue Dec 5, 2024 · 0 comments

Comments

@cyberthirst
Copy link

pip show boa: 0.2.5
vyper --version: 0.4.0+commit.e9db8d9
python --version: 3.11.10

import boa

def test():
    code = """

flag S:
    Admin
    User

s: S

@external
def foo():
    pass
    """

    c = boa.loads(code)
    c.foo()
    storage = c._storage.dump()
    print(storage)

test()

outputs:

<storage: s=unimplemented decoder for `flag S('Admin','User')`>

more generally, any consumer of decode_vyper_objec would fail to decode the flag

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

No branches or pull requests

1 participant