This question already has an answer here:
I have a few variables in my contract that coded like so:
string test; bool public isFrozen = false;
From testing I see that I cannot call the test State variable when calling test().call() but I can call the isFrozen public variable with isFrozen().call() and receive the isFrozen variable.
My question is, if I set the test State variable during deployment, is there ANY way for anyone to view what variables were set during deployment? From my testing I cannot get this information, but I just wanted some guidance.
Also, if there is a way to call a State variable, without using a function please let me know.