mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Clarify what owning means
Updates from review
This commit is contained in:
parent
4d3fa7a6cc
commit
85b6e7508c
@ -42,8 +42,7 @@ data (its *state*) that resides at a specific address on the Ethereum
|
||||
blockchain. The line ``uint storedData;`` declares a state variable called ``storedData`` of
|
||||
type ``uint`` (*u*\nsigned *int*\eger of *256* bits). You can think of it as a single slot
|
||||
in a database that you can query and alter by calling functions of the
|
||||
code that manages the database. In the case of Ethereum, this is always the owning
|
||||
contract. In this case, the functions ``set`` and ``get`` can be used to modify
|
||||
code that manages the database. In this example, the contract defines the functions ``set`` and ``get`` that can be used to modify
|
||||
or retrieve the value of the variable.
|
||||
|
||||
To access a state variable, you do not need the prefix ``this.`` as is common in
|
||||
|
Loading…
Reference in New Issue
Block a user