From f363304d3d87e56dd565b83159f8980e6bede29b Mon Sep 17 00:00:00 2001 From: hacheigriega Date: Tue, 17 Dec 2024 15:59:32 +0900 Subject: [PATCH] fix(tally): return zero for filter gas used if filter has not been applied --- x/tally/keeper/filter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/tally/keeper/filter.go b/x/tally/keeper/filter.go index 2f708d35..05faaff0 100644 --- a/x/tally/keeper/filter.go +++ b/x/tally/keeper/filter.go @@ -74,6 +74,7 @@ func (k Keeper) ApplyFilter(ctx sdk.Context, input []byte, reveals []types.Revea return result, types.ErrInvalidFilterType } if err != nil { + result.GasUsed = 0 return result, err }