Closed jdecrypted closed 2 years ago
sorry, for previous mention "chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol", actually it has no role in compilation.
okay, I figured it out, I had to typecast it.
address payable addr2 = payable(msg.sender);
addr2.transfer(address(this).balance);
It worked.
I see the above error while compiling " ``` function withdraw() payable public { msg.sender.transfer(address(this).balance); }