trufflesuite / truffle-artifactor

A contract packager for Ethereum and Javascript (formerly ether-pudding)
MIT License
254 stars 54 forks source link

Let built pudding contracts inherit from, not redefine, basic methods #42

Closed danfinlay closed 7 years ago

danfinlay commented 7 years ago

I was just looking through the contract objects that pudding generates, and found a fair amount of duplicate code between them. Each contract has about 14kb of boilerplate that seems like it could be imported from a single module, or defined as a single class to inherit from.

Curious your thoughts!

tcoulter commented 7 years ago

This has already been fixed with truffle-contract. Closing! Thanks Dan!