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

Serpent: Redundant btyecode #109

Open
srya-b opened this issue Oct 11, 2016 · 0 comments
Open

Serpent: Redundant btyecode #109

srya-b opened this issue Oct 11, 2016 · 0 comments

Comments

@srya-b
Copy link

srya-b commented Oct 11, 2016

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant