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

hashmaps are incorrectly dumped in storage model #353

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

hashmaps are incorrectly dumped in storage model #353

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 = """

h: HashMap[uint256, uint256]

@external
def foo():
    self.h[100000000] = 999
    self.h[64] = 2000
    """

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

test()

output:

<storage: h={}>
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