Content pfp
Content
@
0 reply
0 recast
0 reaction

Rahul Gupta pfp
Rahul Gupta
@rahul7668gupta.eth
๐Ÿงต1/5 ๐Ÿš€ #100DaysOfSolidity #Day11 Solidity has two special functions for handling contract interactions when no other function matches: the fallback function and the receive function. The fallback function is executed when no other function matches the function identifier.
4 replies
0 recast
2 reactions

Rahul Gupta pfp
Rahul Gupta
@rahul7668gupta.eth
๐Ÿงต5/5 ๐Ÿš€ #100DaysOfSolidity #Day11 It's generally recommended to use the receive function for plain Ether transfers, and the fallback function for interactions where the function selector doesn't match any defined functions. Properly implementing these functions is crucial.
0 reply
0 recast
0 reaction