Replace the line 28 with payable (msg.sender).transfer(amount);
We need to mark address as payable
to transfer any amount. This is required in the new solidity compiler version.
Replace the line 28 with payable (msg.sender).transfer(amount);
We need to mark address as payable
to transfer any amount. This is required in the new solidity compiler version.