function _approve(address owner, address spender, uint256 amount) private {
require(owner != address(0), "ERC20: approve from the zero address");

im trying to approve my token and its return " approve from the zero address"" i have made something wrong on the contract?

Jun 24, 2021, 5:23 AM
or its because im approving with the owner?
Jun 24, 2021, 5:24 AM
Your approving from the 0x0000 address?
Jun 24, 2021, 5:27 AM
no, thats what i found strange too
Jun 24, 2021, 5:27 AM
Show me your external function
For approve
Jun 24, 2021, 5:28 AM
i will send on dm, wait a minute
Jun 24, 2021, 5:30 AM

© 2024 Draquery.com All rights reserved.