Skip to content

Commit d7d03a6

Browse files
committed
Add migrating entry
1 parent f4b5f3a commit d7d03a6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

MIGRATING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,17 @@ major releases of `cosmwasm`. Note that you can also view the
189189
+};
190190
```
191191

192+
- The `update_balance`, `set_denom_metadata`, `set_withdraw_address`,
193+
`set_withdraw_addresses` and `clear_withdraw_addresses` functions were removed
194+
from the `MockQuerier`. Use the newly exposed modules to access them directly:
195+
196+
```diff
197+
-querier.update_balance("addr", coins(1000, "ATOM"));
198+
+querier.bank.update_balance("addr", coins(1000, "ATOM"));
199+
-querier.set_withdraw_address("delegator", "withdrawer");
200+
+querier.distribution.set_withdraw_address("delegator", "withdrawer");
201+
```
202+
192203
- If you were using `QueryRequest::Stargate`, you might want to enable the
193204
`cosmwasm_2_0` cargo feature and migrate to `QueryRequest::Grpc` instead.
194205
While the stargate query sometimes returns protobuf encoded data and sometimes

0 commit comments

Comments
 (0)