Skip to content

Commit ebf3052

Browse files
author
Tomasz Kulik
committed
Update after review
1 parent 9704e4d commit ebf3052

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/pages/core/_meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"standard-library": "Standard Library",
66
"conventions": "Conventions",
77
"advanced": "Advanced",
8-
"specification": "Specification"
8+
"specification": "Specification",
9+
"semantics": "Semantics"
910
}

src/pages/core/semtantics.mdx renamed to src/pages/core/semantics.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Example: we could upload a generic "ERC20 mintable" contract, and many people co
2424
independent instances based on the same bytecode, where the local data defines the token name, the
2525
issuer, the max issuance, etc.
2626

27-
1. First you **create** a _contract_,
27+
1. First you **store** a _contract_,
2828
2. Then you **instantiate** an _instance_,
2929
3. Finally users **invoke** the _instance_.
3030

@@ -75,7 +75,7 @@ may either return a success (with data and events) or an error. In the case of a
7575
will revert the entire transaction in the block.
7676

7777
In this document we focus on the `execute` entry-point implementation and call to show you the
78-
execution flow if the smart contracts. For more information on how to create contract and define
78+
execution flow of the smart contracts. For more information on how to create contract and define
7979
other basic entry-points, check [the entrypoints section](entrypoints.mdx).
8080

8181
### Basic Execution
@@ -148,7 +148,7 @@ cache. If `gas_limit` is set, it is sandboxed to how much gas it can use until i
148148
`OutOfGasError`. This error is caught and returned to the caller like any other error returned from
149149
contract execution (unless it burned the entire gas limit of the transaction).
150150

151-
If it return success, the temporary state is committed (into the caller's cache), and the
151+
If it returns success, the temporary state is committed (into the caller's cache), and the
152152
[`Response`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/struct.Response.html) is processed as
153153
normal. Once the response is fully processed, this may then be intercepted by the calling contract
154154
(for `ReplyOn::Always` and `ReplyOn::Success`). On an error, the subcall will revert any partial
@@ -158,8 +158,8 @@ In this case, the messages error doesn't abort the whole transaction.
158158

159159
Note, that error doesn't abort the whole transaction _if and only if_ the `reply` is called - so in
160160
case of `ReplyOn::Always` and `ReplyOn::Error`. If the submessage is called with `ReplyOn::Success`
161-
or `ReplyOn::Never`, the error in subsequent call would result in failing whole transaction and not
162-
commit the changes for it. The rule here is as follows: if for any reason you want your message
161+
or `ReplyOn::Never`, the error in a subsequent call would result in failing whole transaction and
162+
not commit the changes for it. The rule here is as follows: if for any reason you want your message
163163
handling to succeed on submessage failure, you always have to reply on failure.
164164

165165
#### Handling the reply
@@ -198,7 +198,7 @@ messages. In that case all the message responses from each are concatenated into
198198

199199
#### Order of execution and rollback procedure
200200

201-
Submessages handling follow a _depth first_ order rules. Let's see the following example scenario:
201+
Submessages handling follows _depth first_ order rules. Let's see the following example scenario:
202202

203203
```mermaid
204204
@@ -221,9 +221,9 @@ Submessages handling follow a _depth first_ order rules. Let's see the following
221221
path. It means that for e.g. if `Contract2` will not explicitly handle response from `Contract3` and
222222
forward any data, then `Contract1` will never learn about results from `Contract3`.
223223

224-
**Note2:** If `Contract2` return an error, the error message can be handled by the `Contract1` reply
225-
entry-point and prevent the whole transaction from rollback. In such a case only the `Contract2` and
226-
`Contract3` states changes are reverted.
224+
**Note2:** If `Contract2` returns an error, the error message can be handled by the `Contract1`
225+
reply entry-point and prevent the whole transaction from rollback. In such a case only the
226+
`Contract2` and `Contract3` states changes are reverted.
227227

228228
## Query Semantics
229229

0 commit comments

Comments
 (0)