Skip to content

Commit 00b10ff

Browse files
committed
Format markdown
1 parent 776e41a commit 00b10ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/MESSAGE_TYPES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Rust types as well as `cosmwasm_std` types and how they are encoded in JSON.
1717
| u128/i128 | number | `340282366920938463463374607431768211455, -2766523308300312711084346401884294402` | Supported in Rust. Other implementations do not support the full range. This used to be serialized as a string in serde-json-wasm. See [Dev Note #4: u128/i128 serialization][dev-note-4]. If you have any code relying on that serialization, switch to `Uint128` / `Int128`. |
1818
| usize/isize | number | `123456` | 🚫 Don't use this type because it has a different size in unit tests (64 bit) and Wasm (32 bit). Also it tends to issue float instructions such that the contracts cannot be uploaded. |
1919
| String | string | `"foo"` |
20-
| &str | string | `"foo"` | 🚫 Unsupported since message types must be owned (DeserializeOwned) |
20+
| &str | string | `"foo"` | 🚫 Unsupported since message types must be owned (DeserializeOwned) |
2121
| Option\<T\> | `null` or JSON type of `T` | `null`, `{"foo":12}` | |
2222
| Vec\<T\> | array of JSON type of `T` | `["one", "two", "three"]` (Vec\<String\>), `[true, false]` (Vec\<bool\>) |
2323
| Vec\<u8\> | array of numbers from 0 to 255 | `[187, 61, 11, 250]` | ⚠️ Discouraged as this encoding is not as compact as it can be. See `Binary`. |

0 commit comments

Comments
 (0)