Skip to content

Add the supported_evm_code_types property to the Opcode class #770

@danceratopz

Description

@danceratopz

Add a supported_evm_code_types to the Opcode such that, for example:

print(Op.PUSH1.supported_evm_code_types)
# -> {EVMCodeType.LEGACY, EVMCodeType.EOF_V1}
print(Op.CALL.supported_evm_code_types)
# -> {EVMCodeType.LEGACY}

This would allow the generation and deployment of contract code based on its type for tests that are parametrized or use all opcodes, cf #748 and this discussion: #748 (comment)

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