Skip to content

Cache CreateInputs::created_address #3217

@DaniPopes

Description

@DaniPopes

CreateInputs::created_address will eventually be called by revm. When there are inspectors however one might call this function before it's passed to revm, and revm will call it again thus re-computing 1/2 keccaks (1 for CREATE; 1 bytecode hash + 1 for CREATE2).
We could try making fields private in CreateInputs and having an internal cache for the result of this function.

Here are few uses (foundry, revm-inspectors compute this in the inspector fn create):

Image

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