Solidity Challenge #393 🕵️♂️ Which of the two functions in CallerContract can change the value variable in StateChangingContract? 🔍
Only Foo will be able to modify the called contract. By its design, statically reverts if the state changes in the called contract ( thus static)
foo() will change the value.
foo() function
function foo()
Foo and set value
Blockchain Enthusiast and developer | Coding the Future of Trust and Transparency | Chapter Lead @TPG Karnataka
7mofoo() will change the value, as .call allows for state change