Closed danfinlay closed 6 years ago
Will review, I like this a lot. Does it change the main method signatures in anyway?
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.
Keep going on the event subclasses, that sounds great. I want to see a PR for that soon =D
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.
@flyswatter oh yeah, it's own is fine
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.