Recently I learned about 'chain reorganization'.
What is the change in smart contract when the 'chain reorganizations'?
for example,
contract Contract{
event LOG_Increase();
uint sum = 0;
function Increase() public {
sum++;
emit LOG_Increase();
}
}
When call the solidity function Increase that increments sum from 0,
If the block containing the transaction is discarded due to 'chain reorganization' Does sum become 1 and then become 0 again?
Or is there no change in 0?
And What about LOG_Increase events?
I can't speak English well and I got help from translator. Thank you for your understanding.