Can we add fundWithAddress functionality to FundMe App? #5502
Umairulislam
started this conversation in
General
Replies: 2 comments 4 replies
-
@Umairulislam I think this is the general way we send the funds. If you specify which functionality you are talking about then I can help more. |
Beta Was this translation helpful? Give feedback.
2 replies
-
You can simply do that as below: function fundSpecificAddress(address payable recipient) public payable {
recipient.transfer(msg.value);
} or even safer method: function fundSpecificAddress(address payable recipient) public payable {
(bool success, ) = recipient.call{value: msg.value}("");
require(success, "Transfer failed");
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wondering if anyone could assist me in figuring out if it's feasible to integrate the
fundWithAdress
funationality into the fundme app. This would enable the ability to send funds to individuals by simply entering their wallet address. Thank you.Beta Was this translation helpful? Give feedback.
All reactions