@@ -24,7 +24,7 @@ Example: we could upload a generic "ERC20 mintable" contract, and many people co
24
24
independent instances based on the same bytecode, where the local data defines the token name, the
25
25
issuer, the max issuance, etc.
26
26
27
- 1 . First you ** create ** a _ contract_ ,
27
+ 1 . First you ** store ** a _ contract_ ,
28
28
2 . Then you ** instantiate** an _ instance_ ,
29
29
3 . Finally users ** invoke** the _ instance_ .
30
30
@@ -75,7 +75,7 @@ may either return a success (with data and events) or an error. In the case of a
75
75
will revert the entire transaction in the block.
76
76
77
77
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
79
79
other basic entry-points, check [ the entrypoints section] ( entrypoints.mdx ) .
80
80
81
81
### Basic Execution
@@ -148,7 +148,7 @@ cache. If `gas_limit` is set, it is sandboxed to how much gas it can use until i
148
148
` OutOfGasError ` . This error is caught and returned to the caller like any other error returned from
149
149
contract execution (unless it burned the entire gas limit of the transaction).
150
150
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
152
152
[ ` Response ` ] ( https://docs.rs/cosmwasm-std/latest/cosmwasm_std/struct.Response.html ) is processed as
153
153
normal. Once the response is fully processed, this may then be intercepted by the calling contract
154
154
(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.
158
158
159
159
Note, that error doesn't abort the whole transaction _ if and only if_ the ` reply ` is called - so in
160
160
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
163
163
handling to succeed on submessage failure, you always have to reply on failure.
164
164
165
165
#### Handling the reply
@@ -198,7 +198,7 @@ messages. In that case all the message responses from each are concatenated into
198
198
199
199
#### Order of execution and rollback procedure
200
200
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:
202
202
203
203
``` mermaid
204
204
@@ -221,9 +221,9 @@ Submessages handling follow a _depth first_ order rules. Let's see the following
221
221
path. It means that for e.g. if ` Contract2 ` will not explicitly handle response from ` Contract3 ` and
222
222
forward any data, then ` Contract1 ` will never learn about results from ` Contract3 ` .
223
223
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.
227
227
228
228
## Query Semantics
229
229
0 commit comments