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

Break codebase into separate pieces #4

Closed
wants to merge 2 commits into from

Conversation

danfinlay
Copy link

In particular, breaks the Contract class into its own file.

This has the benefit of being more modular, allowing subclassing for external modules, as well as saving memory that was previously wasted re-initializing the class on each instance creation.

Fixes #3.

In particular, breaks the Contract class into its own file.

This has the benefit of being more modular, allowing subclassing for external modules, as well as saving memory that was previously wasted re-initializing the class on each instance creation.

Fixes ethjs#3.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 7a5973f on flyswatter:i3-BreakOutContractClass into afa0169 on ethjs:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 7a5973f on flyswatter:i3-BreakOutContractClass into afa0169 on ethjs:master.

@SilentCicero
Copy link
Member

Will review, I like this a lot. Does it change the main method signatures in anyway?

@danfinlay
Copy link
Author

Nope, all external API is identical, no tests changed, all tests passing.

I want this entirely so I can inherit from this to make an event-emitting subclass of your contract abstraction.

@SilentCicero
Copy link
Member

Keep going on the event subclasses, that sounds great. I want to see a PR for that soon =D

@danfinlay
Copy link
Author

Oh, do you think it should just be a different export on this repo? I was making it its own repo that imports the contract file from this one.

@SilentCicero
Copy link
Member

@FlySwatter oh yeah, it's own is fine

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

Successfully merging this pull request may close these issues.

3 participants