You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know, how can I add a withdraw wallet, because after depolying the contract, and adding some funds, when I click the withdraw box, inside remix.org, it automaticly errase all the funds in the contract I think that is somethign related to this, but I don´t know what I have to change:
function withdraw() public payable onlyOwner {
(bool success, ) = payable(msg.sender).call{
value: address(this).balance
}("");
require(success);
}
The text was updated successfully, but these errors were encountered:
I would like to know, how can I add a withdraw wallet, because after depolying the contract, and adding some funds, when I click the withdraw box, inside remix.org, it automaticly errase all the funds in the contract I think that is somethign related to this, but I don´t know what I have to change:
function withdraw() public payable onlyOwner {
(bool success, ) = payable(msg.sender).call{
value: address(this).balance
}("");
require(success);
}
The text was updated successfully, but these errors were encountered: