Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Serpent: Redundant btyecode #109

@srya-b

Description

@srya-b

I created these two contracts as examples.
root.se

extern child.se: [double:[int256]:int256]

c = create('child.se')
c1 = create('child.se')
c2 = create('child.se')

def call():
    return(c.double(3))

and child.se

def double(x):
    return(x**2)

When root.se is compiled, redundant bytecode of the child.se is pasted into it instead of just once. Why is that?

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