daksh
@dakshk.eth
hey EVM devs, I had a question, I've seen many contracts having a internal function and then a public function, calling that function itself. what's wrong with making that internal fn an external/ public fn?
2 replies
0 recast
0 reaction
Naman
@alchemist
This solidity pattern is to firstly abstract the fundamental action i.e to make the necessary checks required for the "transfer"(internal) operation. Then the implementation of a new "transfer"(public) can be written according to the app by overriding it etc.
1 reply
0 recast
0 reaction
daksh
@dakshk.eth
okay, understood. makes sense. thanks!
0 reply
0 recast
0 reaction