how can I do something when eth is received???

Im deploying a contract and want it to do some function when eth is received

Jun 1, 2021, 3:48 AM
done...
receive() external payable {
sendViaCall();
}
It works and Im sending it to a hardocoded wallet want if I want to send it to the wallet who send me the eth?
Jun 1, 2021, 3:55 AM

© 2024 Draquery.com All rights reserved.