合约函数会更新变量值吗?
- INDEXERS
如果合约函数发出事件 A,更新变量,然后发出事件 B,则变量值是否会在事件 A 处理程序或事件 B 处理程序中更新?
Respuestas1
event A's handler will fetch the previous state of the variable because it is executed before the variable is updated within the transaction, event B's handler will fetch the updated state of the variable because it is executed after the update occurs within the transaction.