Skip to content

Stateful precompiles have write access to all state, not just their own #41

@ARR4N

Description

@ARR4N

We currently pass a vm.StateDB to stateful precompiles, providing global write access. Although precompiles know their own address and can limit writes to the correct scope (pending bug-fix in #40), this is error-prone.

Is there ever a need for this? If not, it should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions