Skip to content

Commit ef0ba79

Browse files
committed
Add missing migration information
1 parent a690c10 commit ef0ba79

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/MIGRATING.md

+14
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
list to a list of type `[]string`.
77
- The field `CodeInfoResponse.Checksum` is now explicitly marked as
88
non-optional. It has always been set to a 32 byte value in the past.
9+
- All entrypoint functions now return the full result with an `Ok` or `Err`
10+
variant instead of just the data inside the `Ok`. This was previously only the
11+
case for `IBCPacketReceive`. It is important to note that this means contract
12+
errors are no longer returned in the `error` return value. Instead, the `Err`
13+
field should be checked for errors.
14+
- The field `BlockInfo.Time` now uses a wrapper type `Uint64` instead of
15+
`uint64` to ensure string serialization. You can use `uint64(u)` to get the
16+
underlying value.
17+
- CosmWasm gas values were reduced by a factor of 1000, so each instruction now
18+
consumes 150 CosmWasm gas instead of 150000. This should be taken into account
19+
when converting between CosmWasm gas and Cosmos SDK gas.
920

1021
## Renamings
1122

@@ -22,5 +33,8 @@ where the old name was deprecated.
2233
| `CanonicalizeAddress` | `CanonicalizeAddressFunc` | Follow [best practice for naming function types][ft] |
2334
| `GoAPI.HumanAddress` | `GoAPI.HumanizeAddress` | Perfer verbs for converters |
2435
| `GoAPI.CanonicalAddress` | `GoAPI.CanonicalizeAddress` | Perfer verbs for converters |
36+
| `CosmosMsg.Stargate` | `Any` | The message has nothing to do with Stargate |
37+
| `StargateMsg` | `AnyMsg` | The message has nothing to do with Stargate |
38+
| `QueryResponse` | `QueryResult` | Brings consistency with the naming of the other results |
2539

2640
[ft]: https://stackoverflow.com/a/60073310

0 commit comments

Comments
 (0)