Skip to content

eas assembles broken contracts when the body is split in multiple includes #114

Open
@vyzo

Description

I am trying to compose a contract as follows:

%push(body_end - body_begin)
dup1
%push(body_begin)
push1 0x00
codecopy
push1 0x00
return

body_begin:
%include("A.eas")
%include("B.eas")
...
body_end:

Unfortunately the assembly is broken, as eas generates illegal jumps in the body.
If I lump all the includes together and do a single file, everything works fine.
So this is a bug in the assembly.

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