Skip to content

Note low level return data size check#6434

Draft
james-toussaint wants to merge 1 commit intoOpenZeppelin:masterfrom
james-toussaint:chore/low-level-returndata
Draft

Note low level return data size check#6434
james-toussaint wants to merge 1 commit intoOpenZeppelin:masterfrom
james-toussaint:chore/low-level-returndata

Conversation

@james-toussaint
Copy link
Copy Markdown
Collaborator

Fixes L-28

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 24, 2026

⚠️ No Changeset found

Latest commit: 140a222

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

///
/// WARNING: Do not assume that the results are zero if `success` is false. Memory can be already allocated
/// and this function doesn't zero it out.
/// and this function doesn't zero it out. Similarly, if `success` is true consider checking the return data size
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe its not worth distinguishing success values

/// WARNING: Do not assume that the results are zero if the call doesn't return data. Memory can be already allocated
/// and this function doesn't zero it out. Consider checking the return data size using {returnDataSize()} to check 
/// the results space was writen by the call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants