Skip to content

Commit

Permalink
Add changelog and migrating entry
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Oct 17, 2023
1 parent ef908d7 commit c55e126
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ and this project adheres to
constructor, remove `SubMsgExecutionResponse` (Use `SubMsgResponse` instead)
and remove `PartialEq<&str> for Addr` (validate the address and use
`PartialEq<Addr> for Addr` instead). ([#1879])
- cosmwasm-std: Remove `Mul<Decimal> for Uint128` and
`Mul<Decimal256> for Uint256`. Use `Uint{128,256}::mul_floor` instead.
([#1890])

[#1879]: https://github.com/CosmWasm/cosmwasm/pull/1879
[#1890]: https://github.com/CosmWasm/cosmwasm/pull/1890

## [1.5.0-rc.0]

Expand Down
8 changes: 8 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ major releases of `cosmwasm`. Note that you can also view the

But keep in mind that this is case sensitive (while addresses are not).

- Replace all uses of `Mul<Decimal> for Uint128` and
`Mul<Decimal256> for Uint256` with `Uint{128,256}::mul_floor`:

```diff
-Uint128::new(123456) * Decimal::percent(1);
+Uint128::new(123456).mul_floor(Decimal::percent(1));
```

## 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 c55e126

Please sign in to comment.