Solidity - Receive() Automation
Channel:
Subscribers:
1,210
Published on ● Video Link: https://www.youtube.com/watch?v=fCkAFXDXcAY
An example without Chainlink Keepers. receive() function automatically executes when ETH is received. Since msg.data is empty [just sending Ethererum], we only need receive(). fallback() is useful for custom msg.data for proxy upgrade contracts. Useful as a team wallet.
Github: https://github.com/MarcusWentz/AutoTeamContestPayout/blob/main/contracts/AutoMSG_VALUEtransfer.sol
Other Videos By Singularity 2045
Tags:
Solidity
Fallback
Receive
Programming
Ethereum
Transfer
Send
Automatic
Automation