Skip to content

std: Add non-terminal read API to StorageBytes#1510

Open
cburgdorf wants to merge 1 commit into
argotorg:masterfrom
cburgdorf:read_storagebytes
Open

std: Add non-terminal read API to StorageBytes#1510
cburgdorf wants to merge 1 commit into
argotorg:masterfrom
cburgdorf:read_storagebytes

Conversation

@cburgdorf

Copy link
Copy Markdown
Collaborator

StorageBytes could only read stored bytes via encode_return, which ends the call. Add to_memory, which copies the stored bytes into freshly allocated memory and returns (ptr, len) so callers can post-process them (hash, deploy via create2_raw, etc), plus word_at for random access to individual payload words.

StorageBytes could only read stored bytes via encode_return, which ends
the call. Add to_memory, which copies the stored bytes into freshly
allocated memory and returns (ptr, len) so callers can post-process them
(hash, deploy via create2_raw, etc), plus word_at for random access to
individual payload words.
@cburgdorf cburgdorf requested a review from g-r-a-n-t July 8, 2026 15:43
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.

1 participant