Skip to main content
3 events
when toggle format what by license comment
Aug 27, 2021 at 14:36 comment added Fatih Furkan I tried public and external for addExtra function and results are: For public: 47532 gas and 47532. So they are equal. There is no gas saving with this way. Did it answer your question? If not let me know.
Aug 27, 2021 at 14:26 comment added Shanthakumar this is not just about public vs external. Notice that I'm discussing the visibility public vs external in a library function. Library functions are treated as base contracts during function calls and use delegate calls to invoke functions, in this case, arguments are not copied to memory, only the reference will be sent to the library contract. so my question is if it's only the reference that's being sent to the library contract, will it be any different to use external over the public in a library function to save gas?
Aug 27, 2021 at 13:58 history answered Fatih Furkan CC BY-SA 4.0