Skip to content

Transfer fails with invalid opcode if outcome allocations is empty #52

@lalexgap

Description

@lalexgap

I called conclude with a commitment that had an empty allocation array.

When I called transfer the contract failed with VM Exception while processing transaction: invalid opcode

We should probably handle this more gracefully and use a require that returns a message indicating the failure is due to the empty allocation array.

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