Skip to content

Commit

Permalink
Fix context assignment (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
codchen authored Jun 14, 2024
1 parent d14d7fb commit 434130f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x/wasm/keeper/handler_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ func (h SDKMessageHandler) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddr
return ctx, nil, nil, err
}
for _, sdkMsg := range sdkMsgs {
resCtx, res, err := h.handleSdkMessage(ctx, contractAddr, sdkMsg)
rCtx, res, err := h.handleSdkMessage(ctx, contractAddr, sdkMsg)
if err != nil {
return ctx, nil, nil, err
}
ctx = resCtx
ctx = rCtx
resCtx = rCtx
// append data
data = append(data, res.Data)
// append events
Expand Down

0 comments on commit 434130f

Please sign in to comment.