Merge pull request #6980 from ethereum/wip/own-clar

[DOCS] Clarify what owning contract means
This commit is contained in:
chriseth 2019-06-25 11:25:18 +02:00 committed by GitHub
commit 9252906827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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