Code has been added to clipboard!

Withdrawing a Solidity Bid

Example
function withdraw() public returns (bool) {
        uint amount = pendingReturns[msg.sender];
        if (amount > 0) {

            pendingReturns[msg.sender] = 0;