Let's suppose this smartcontract:
contract Test1 {
string private i_am_private;
string public i_am_public;
...
}
Solidity's compiler is automatically generating a getter function for public fields. So we can easily read value from another contract or from a DAPP.
But everything is stored on blockchain and everything is public. So it might have a way to read private fields too... We can do that manually by browsing a blockchain explorer for example. But is there a simple way to do that from a DAPP or from another smart contract ?
Thanks