Update docs/sophia.md

Co-authored-by: Radosław Rowicki <35342116+radrow@users.noreply.github.com>
This commit is contained in:
Nikita Fuchs 2021-04-26 11:35:30 +02:00 committed by GitHub
parent 7313957182
commit 5ccece4635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ The main unit of code in Sophia is the *contract*.
- A contract instance is an entity living on the block chain (or in a state - A contract instance is an entity living on the block chain (or in a state
channel). Each instance has an address that can be used to call its channel). Each instance has an address that can be used to call its
entrypoints, either from another contract or in a call transaction. entrypoints, either from another contract or in a call transaction.
- A contract may define a type `state` encapsulating its local - A contract may define a type `state` encapsulating its local mutable
state. When creating a new contract the `init` entrypoint is executed and the state. When creating a new contract the `init` entrypoint is executed and the
state is initialized to its return value. state is initialized to its return value.