File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 6
6
list to a list of type ` []string ` .
7
7
- The field ` CodeInfoResponse.Checksum ` is now explicitly marked as
8
8
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.
9
20
10
21
## Renamings
11
22
@@ -22,5 +33,8 @@ where the old name was deprecated.
22
33
| ` CanonicalizeAddress ` | ` CanonicalizeAddressFunc ` | Follow [ best practice for naming function types] [ ft ] |
23
34
| ` GoAPI.HumanAddress ` | ` GoAPI.HumanizeAddress ` | Perfer verbs for converters |
24
35
| ` 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 |
25
39
26
40
[ ft ] : https://stackoverflow.com/a/60073310
You can’t perform that action at this time.
0 commit comments