From 1ec61b401fa5c53a3e3a57880b866f2c74a7c3a7 Mon Sep 17 00:00:00 2001 From: John Letey Date: Fri, 18 Nov 2022 09:54:11 +0100 Subject: [PATCH] fix: correctly propagate msg errors in gov --- x/gov/abci.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/gov/abci.go b/x/gov/abci.go index 21aca44ed08a..ae553149d9c1 100644 --- a/x/gov/abci.go +++ b/x/gov/abci.go @@ -71,7 +71,9 @@ func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) { if err == nil { for idx, msg = range messages { handler := keeper.Router().Handler(msg) - res, err := handler(cacheCtx, msg) + + var res *sdk.Result + res, err = handler(cacheCtx, msg) if err != nil { break }