Code has been added to clipboard!

Error for Sending Coins in Solidity

Example
function send(address receiver, uint amount) public {
        require(amount <= balances[msg.sender], "Balance too low!");
        balances[msg.sender] -= amount;
        balances[receiver] += amount;
        emit Sent(msg.sender, receiver, amount);
    }
}