Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
If I create an ERC20 token using a smart contract, how do I reference a contracts ethereum balance? Or do I just need to update some value like --> ethStore and then send transfers based on that value?
Thank you in advance!!
Prior to version 0.5.0, the contract balance would be called via:
This is now forbidden and an explicit conversion to address must be done:
So just make sure which version of Solidity you are using.
Required, but never shown