Skip to content

Access current_opcode and a question. #2717

@MathieuDutSik

Description

@MathieuDutSik

The source code contains the following obsolete sentence

/// To get the current opcode, use `interp.current_opcode()`.

But there is no function current_opcode in the code. So, either the code is missing or the comment needs to be removed.


To give a context of what I am looking for, In the creation of a contract, the init_code contains the concatenation of the bytecode and the constructor arguments.

I want to obtain the bytecode itself. It is not a simple problem, but REVM, by being an EVM interpreter, should be able to resolve that question.

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