Hey guys, does anyone have best practices on how i should separate out my smart contract? e.g interaces in 1 file, helpers in another, misc function, admin functions? ERC721? not sure. Im, building a pretty large contract

Jun 24, 2022, 6:12 PM
Uhm i don't think there is a best pratice.
Lot of devs prefer to flatten the contracts into one, others prefer to split and sometimes you NEED to split if you're writing very long contracts (to avoid size to big)
Jun 24, 2022, 6:13 PM
yess, currently size is too big. So needed to turn the optomizer on
hmm, need to research this more
Jun 24, 2022, 6:15 PM
always keep it on =)
i think i've never deployed one contract without optimizations 😆
Jun 24, 2022, 6:15 PM
haha wise words
can i give you a dm?
Jun 24, 2022, 6:33 PM
sure
Jun 24, 2022, 6:34 PM
The ones that flatten contracts are not real devs xD
Jun 24, 2022, 7:19 PM
if this, try something easier first and delete that contract
Jun 24, 2022, 7:39 PM

© 2024 Draquery.com All rights reserved.