From c2c39f43d4c1088ecf74a4405782fe766e55d3da Mon Sep 17 00:00:00 2001 From: bt3gl <1130416+bt3gl@users.noreply.github.com> Date: Sat, 24 Sep 2022 21:26:40 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=A3=20what=20is=20considered=20modifyi?= =?UTF-8?q?ng=20state?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- master_solidity/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/master_solidity/README.md b/master_solidity/README.md index df214ce..b3c3c23 100644 --- a/master_solidity/README.md +++ b/master_solidity/README.md @@ -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. +
+ +#### 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 + + +