Skip to content

Commit

Permalink
Add changelog and migrating entries
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Nov 6, 2023
1 parent b75e767 commit 656813b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ and this project adheres to
`ConversionOverflowError` and `DivideByZeroError`. ([#1896])
- cosmwasm-std: Add `SubMsg:reply_never` constructor ([#1929])
- cosmwasm-std: Add optional memo field to `IbcMsg::Transfer`. ([#1878])
- cosmwasm-std: Make inner values of `CanonicalAddr` and `Binary` private and
add constructor for `Binary`. ([#1876])
- cosmwasm-vm: Make inner value of `Size` private and add constructor. ([#1876])

[#1874]: https://github.com/CosmWasm/cosmwasm/pull/1874
[#1876]: https://github.com/CosmWasm/cosmwasm/pull/1876
[#1878]: https://github.com/CosmWasm/cosmwasm/pull/1878
[#1879]: https://github.com/CosmWasm/cosmwasm/pull/1879
[#1890]: https://github.com/CosmWasm/cosmwasm/pull/1890
Expand Down
16 changes: 16 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ major releases of `cosmwasm`. Note that you can also view the
+Coin::new(1234u128, "uatom")
```

- When creating a `Binary` or `Size` instance from an inner value, you now have
to explicitly call `new`:

```diff
-Binary(vec![1u8])
+Binary::new(vec![1u8])
```

- When accessing the inner value of a `CanonicalAddr` or `Binary`, use
`as_slice` instead:

```diff
-&canonical_addr.0
+canonical_addr.as_slice()
```

## 1.4.x -> 1.5.0

- Update `cosmwasm-*` dependencies in Cargo.toml (skip the ones you don't use):
Expand Down

0 comments on commit 656813b

Please sign in to comment.