contract and you want to know it's balance using address(this).balance is this balance the eth in the contract or the erc20 tokens in the contract? Can't an erc20 contract hold some of it's tokens and eth for gas? If so doesn't this affect the balance
ERC20 specifies that the function to get the balance to be balanceOf(), not .balance
Thanks I didn't look at that at all. Gonna look at that contract now.
Обсуждают сегодня