Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant