Skip to content

Commit 23f56a0

Browse files
committed
Update MIGRATING
1 parent 28389a1 commit 23f56a0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

MIGRATING.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ major releases of `cosmwasm`. Note that you can also view the
2323
# ...
2424
```
2525

26+
- Rename the `handle` entry point to `execute`.
27+
Also, rename `HandleMsg` to `ExecuteMsg`.
28+
2629
- Remove `from_address` from `BankMsg::Send`, which is now automatically filled
2730
with the contract address:
2831

@@ -72,11 +75,11 @@ major releases of `cosmwasm`. Note that you can also view the
7275
}
7376

7477
#[entry_point]
75-
pub fn handle(
78+
pub fn execute(
7679
_deps: DepsMut,
7780
_env: Env,
7881
_info: MessageInfo,
79-
_msg: HandleMsg,
82+
_msg: ExecuteMsg,
8083
) -> StdResult<HandleResponse> {
8184
//
8285
}
@@ -177,7 +180,7 @@ major releases of `cosmwasm`. Note that you can also view the
177180

178181

179182
// after
180-
pub fn handle_impl(deps: DepsMut, env: Env, info: MessageInfo) -> Result<HandleResponse, ContractError> {
183+
pub fn execute_impl(deps: DepsMut, env: Env, info: MessageInfo) -> Result<HandleResponse, ContractError> {
181184
// ...
182185

183186
// release counter_offer to creator

0 commit comments

Comments
 (0)