Skip to content

Commit

Permalink
Update docs/MESSAGE_TYPES.md
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Kurcz <uint@lavabit.com>
  • Loading branch information
webmaster128 and uint authored Sep 19, 2022
1 parent 985bac9 commit a26f738
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/MESSAGE_TYPES.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## CosmWasm message types

CosmWasm uses JSON for sending data from the host the Wasm contract and results
CosmWasm uses JSON for sending data from the host to the Wasm contract and results
out of the Wasm contract. Such JSON messages are created in the client,
typically some JavaScript-based application. There the usage of JSON is feels
very natural for developers. However, JSON has signigicant limitations such as
typically some JavaScript-based application. There the usage of JSON feels
very natural for developers. However, JSON has significant limitations such as
the lack of a native binary type and inconsistent support for integers > 53 bit.
For this reason, the CosmWasm standard limrary `cosmwasm-std` shipts types that
ensure good user experience in JSON. The following table shows both stadard Rust
types as well as cosmwasm_std types and how they are encoded in JSON.
For this reason, the CosmWasm standard library `cosmwasm-std` ships types that
ensure good user experience in JSON. The following table shows both standard Rust
types as well as `cosmwasm_std` types and how they are encoded in JSON.

| Rust type | JSON type[^1] | Example | Note |
| ------------------- | -------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------- |
Expand Down

0 comments on commit a26f738

Please # to comment.