mirror of
https://github.com/autistic-symposium/blockchains-security-toolkit.git
synced 2025-05-17 14:10:32 -04:00
🍣 what is considered modifying state
This commit is contained in:
parent
dd405c9d79
commit
c2c39f43d4
1 changed files with 15 additions and 0 deletions
|
@ -58,6 +58,21 @@
|
||||||
* selfdestruct(__recipient_address__): deletes the current contract, sending any remaining ether in the account to the recipient address.
|
* 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.
|
* 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>
|
<br>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue