Ethereum Asked by Ilan Dshare on October 6, 2020
I See some very weird solc behaviour with regards to compiled bytecode size.
A much shorter contract compiles to bigger byte code.
short contract: compiles into 439 bytes.
while this longer one compiles into 129 bytes.
note that the longer contract includes the code of the shorter one plus some extra code.
not sure what am I missing.
Thank to Kamil Śliwak that replied to me on the solidity gitter channel.
reason is the longer contract has only internal functions which the optimizer will remove out of the deployed bytecode. must call the functions of switch to external in order to check bytecode size effects.
Answered by Ilan Dshare on October 6, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP