mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6980 from ethereum/wip/own-clar
[DOCS] Clarify what owning contract means
This commit is contained in:
commit
9252906827
@ -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
|
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
|
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
|
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
|
code that manages the database. In this example, the contract defines the functions ``set`` and ``get`` that can be used to modify
|
||||||
contract. In this case, the functions ``set`` and ``get`` can be used to modify
|
|
||||||
or retrieve the value of the variable.
|
or retrieve the value of the variable.
|
||||||
|
|
||||||
To access a state variable, you do not need the prefix ``this.`` as is common in
|
To access a state variable, you do not need the prefix ``this.`` as is common in
|
||||||
|
Loading…
Reference in New Issue
Block a user