Skip to content

Commit

Permalink
fix: correctly propagate msg errors in gov
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Nov 18, 2022
1 parent afc6a00 commit 1ec61b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/gov/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1ec61b4

Please sign in to comment.