Instruction.is_storage_write()
Returns True if the instruction is a storage write instruction, else returns False. A storage write instruction writes to the state variable of a contract
Query
Output
In the output above, the first instruction is a storage write instruction where the _owner
state variable is written with the value of newOwner
. Hence, the is_storage_write()
returns `True` whereas for the second instruction it returns `False` as it does not write to any state variable
Last updated