Skip to content

[Feature] Pass the TxEnv to precompiles as well. #164

@nuntax

Description

@nuntax

Describe the feature you would like

I am using the PrecompilesMap for adding and managing Precompiles. However, I now ran into the issue that the EvmInternals field in the PrecompileInput only contains the BlockEnv and not the TxEnv, which I need to access in a precompile.

pub struct EvmInternals<'a> {
internals: Box<dyn EvmInternalsTr + 'a>,
block_env: &'a (dyn Block + 'a),
}

Would also open a PR myself and add it, just don't know if there's maybe a specific reason that the TxEnv is not in there.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions