hi there,
i am trying to retrieve contract balance by the owner, just in case i wrongly transferred eth into smart contract.
here is my code:
function WDETH() public payable {
uint256 amount = address(this).balance;
if(amount > 0) {
msg.sender.transfer(amount);
}
}
and i got the following error. been work around but still stuck.
any advice? thank you!