Skip to content

Commit

Permalink
Add migrating entry
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Dec 21, 2023
1 parent f4b5f3a commit d7d03a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,17 @@ major releases of `cosmwasm`. Note that you can also view the
+};
```

- The `update_balance`, `set_denom_metadata`, `set_withdraw_address`,
`set_withdraw_addresses` and `clear_withdraw_addresses` functions were removed
from the `MockQuerier`. Use the newly exposed modules to access them directly:

```diff
-querier.update_balance("addr", coins(1000, "ATOM"));
+querier.bank.update_balance("addr", coins(1000, "ATOM"));
-querier.set_withdraw_address("delegator", "withdrawer");
+querier.distribution.set_withdraw_address("delegator", "withdrawer");
```

- If you were using `QueryRequest::Stargate`, you might want to enable the
`cosmwasm_2_0` cargo feature and migrate to `QueryRequest::Grpc` instead.
While the stargate query sometimes returns protobuf encoded data and sometimes
Expand Down

0 comments on commit d7d03a6

Please sign in to comment.