Skip to content

docs: correct misleading comments in gas consumption rules - #810

Open
elonfliter wants to merge 1 commit into
protofire:developfrom
elonfliter:develop
Open

elonfliter wants to merge 1 commit into
protofire:developfrom
elonfliter:develop

Conversation

@elonfliter

Copy link
Copy Markdown

Summary

  • Correct the address exemption comment in gas-small-strings: the check only uses the 0x prefix and a length of 42; it does not validate hex digits or checksum.
  • Correct the packing calculation comment in gas-struct-packing: the implementation sorts members by descending size and simulates slot usage, rather than rounding up total byte size.

These are comment-only changes with no runtime behavior changes.

Validation

  • Related rule tests: 26 passing.
  • ESLint passed for both modified files.
  • git diff --check passed.
  • Confirmed both discrepancies with concrete inputs.

Signed-off-by: elonfliter <elonfliter@outlook.com>

This branch has not been deployed

No deployments
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