Skip to content

Instruction<'_> and Script::push_opcode are too lax #1187

@Kixunil

Description

@Kixunil

Both use All in context where push data opcodes are invalid. Ideally we would have a type (probably enum) NonPush (or a better name?) which guarantees no push opcodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0Issues and PRs required or helping to stabilize the APIAPI breakThis PR requires a version bump for the next releasecode qualityMakes code easier to understand and less likely to lead to problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions