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

feat(stdstorage): Read and write dynamic length elements (string + bytes) #259

Closed
wants to merge 7 commits into from

Conversation

brockelmore
Copy link
Member

Adds support for reading & writing strings and bytes. Works by checking read slots to see if it is a tightly packed dynamic element or spread out dynamic and comparing that to the return data from the call.

Allows writing to these kinds of elements as well by performing the expected packing and zeroing out any old slots.

Fix foundry-rs/foundry#3869

@mds1
Copy link
Collaborator

mds1 commented Apr 25, 2024

Closing as stale

@mds1 mds1 closed this Apr 25, 2024
@DaniPopes DaniPopes deleted the brock/string_find branch October 24, 2024 23:20
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.

Cannot find the storage slot for a public string variable
2 participants