From 460af1de005f3bc49bcfa462ba6cba61f3856e49 Mon Sep 17 00:00:00 2001 From: codchen Date: Sat, 15 Jun 2024 00:12:34 +0800 Subject: [PATCH] Fix context assignment --- x/wasm/keeper/handler_plugin.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x/wasm/keeper/handler_plugin.go b/x/wasm/keeper/handler_plugin.go index 81141a2..d649f11 100644 --- a/x/wasm/keeper/handler_plugin.go +++ b/x/wasm/keeper/handler_plugin.go @@ -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