Skip to content

Commit

Permalink
fix: fix validate markdown files issue by running format_md script
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybxyz committed Apr 24, 2023
1 parent cd3749c commit 0a04e65
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions SEMANTICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ After the `submessage` is finished, the caller will get a chance to handle the
result. It will get the original `id` of the subcall so it can switch on how to
process this, and the `Result` of the execution, both success and error. Note
that it includes all events returned by the submessage, which applies to native
sdk modules (like Bank) as well as the data returned from below. This
and the original call id provide all context to continue processing it. If you
need more state, you must save some local context to the store (under the `id`)
before returning the `submessage` in the original `execute`, and load it in
`reply`. We explicitly prohibit passing information in contract memory, as that
is the key vector for reentrancy attacks, which are a large security surface
area in Ethereum.
sdk modules (like Bank) as well as the data returned from below. This and the
original call id provide all context to continue processing it. If you need more
state, you must save some local context to the store (under the `id`) before
returning the `submessage` in the original `execute`, and load it in `reply`. We
explicitly prohibit passing information in contract memory, as that is the key
vector for reentrancy attacks, which are a large security surface area in
Ethereum.

The `reply` call may return `Err` itself, in which case it is treated like the
caller errored, and aborting the transaction. However, on successful processing,
Expand Down
24 changes: 12 additions & 12 deletions docs/USING_COSMWASM_STD.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

cosmwasm-std is the standard library for building contracts in CosmWasm. It is
compiled as part of the contract to Wasm. When creating a dependency to
cosmwasm-std, the required Wasm imports and exports are created implicitly via
C interfaces, e.g.:
cosmwasm-std, the required Wasm imports and exports are created implicitly via C
interfaces, e.g.:

```rust
// Exports
Expand Down Expand Up @@ -34,16 +34,16 @@ in the dependency tree. Otherwise conflicting C exports are created.

The libarary comes with the following features:

| Feature | Enabled by default | Description |
| ------------ | ------------------ | -------------------------------------------------------------------------- |
| iterator | x | Storage iterators |
| abort | x | A panic handler that aborts the contract execution with a helpful message |
| stargate | | Cosmos SDK 0.40+ features and IBC |
| ibc3 | | New fields added in IBC v3 |
| staking | | Access to the staking module |
| backtraces | | Add backtraces to errors (for unit testing) |
| cosmwasm_1_1 | | Features that require CosmWasm 1.1+ on the chain |
| cosmwasm_1_2 | | Features that require CosmWasm 1.2+ on the chain |
| Feature | Enabled by default | Description |
| ------------ | ------------------ | ------------------------------------------------------------------------- |
| iterator | x | Storage iterators |
| abort | x | A panic handler that aborts the contract execution with a helpful message |
| stargate | | Cosmos SDK 0.40+ features and IBC |
| ibc3 | | New fields added in IBC v3 |
| staking | | Access to the staking module |
| backtraces | | Add backtraces to errors (for unit testing) |
| cosmwasm_1_1 | | Features that require CosmWasm 1.1+ on the chain |
| cosmwasm_1_2 | | Features that require CosmWasm 1.2+ on the chain |

## The cosmwasm-std dependency for contract developers

Expand Down

0 comments on commit 0a04e65

Please sign in to comment.