```\\nfunction approve(address spender, uint amount) external override returns (bool) {\\n    allowance[msg.sender][spender] = amount;\\n    emit Approval(msg.sender, spender, amount);\\n    return true;\\n}\\n```\\n