3 ms·
> You can break up your code into multiple contracts, but the tradeoff is an increased attack area. This is the way to get programs over 500 lines, and it does
by maehwasu 9y ago
> You can break up your code into multiple contracts, but the tradeoff is an increased attack area.
This is the way to get programs over 500 lines, and it doesn't increase the attack area as much as you'd think, since you can essentially hard-code the addresses of outside contracts into your code--it's not a combinatorial explosion.
- Slartie 9y ago> and it doesn't increase the attack area as much as you'd think You should call Gavin Wood and tell him that :D
- jatsign 9y agoThat makes sense, thanks. I hadn't thought of making it hard-coded (or just set at construction). The examples I'd seen were "upgradable" tokens.
- maehwasu 9y agoYeah, I did a lot of upgradeable stuff early, but have since moved to more hardcoded stuff for that exact reason.