🍣 what is considered modifying state

This commit is contained in:
bt3gl 2022-09-24 21:26:40 -07:00 committed by GitHub
parent dd405c9d79
commit c2c39f43d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,21 @@
* selfdestruct(__recipient_address__): deletes the current contract, sending any remaining ether in the account to the recipient address.
* this: address of the currently executing contract account.
<br>
#### what is considered modifying state
- writing to state variables
- emitting events
- creating other contracts
- sending ether via calls
- using selfdestruct
- using low-level calls
- calling any function not marked view or pure
- using inline assembly that contains certain opcodes
<br>