execution reverted: ERC20: approve from the zero address.

Hello, i was trying to call a swap approval under bnb smart chain but an error was show saying execution reverted: ERC20: approve from the zero address. What can cause this?

Hi, welcome to the community! :wave:

It seems like this is an error in your ERC20 token, if possible, you can share the contract source code at here, so we can know what to do when we call the function approve.

1 Like