Skip to content

Express GasCosts.CALL_VALUE as a derivation instead of a literal #3014

Description

@danceratopz

GasCosts.CALL_VALUE is a hardcoded literal (Uint(10300)) carrying its derivation only in a comment (# ACCOUNT_WRITE + CALL_STIPEND). We would prefer to write it directly as ACCOUNT_WRITE + CALL_STIPEND, so the value is self-documenting and tracks any change to its components. This is currently blocked by a conflict between Python class-body scoping and the PatchHygiene spec lint.

Raised during review of #2972:
#2972 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-spec-specsArea: Specification—The Ethereum specification itself (eg. `src/ethereum/*`)C-refactorCategory: refactor

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions