Transfer ERC20 to zero address

function _transfer(address sender, address recipient, uint256 amount) private {
    require(sender != address(0), "ERC20: transfer from the zero address");
    require(recipient != address(0), "ERC20: transfer to the zero address");

This is in your code. It will stop transfers to the Zero Address. If you’ve already deployed it and need an emergency solution, use another dead address that is popular. 0x000001 or 0x0000dead.

But the reason why the code doesn’t want you to do that is because the dead address is going to be getting the tax. :roll_eyes:

1 Like