From 82403a30dcea95bd49ea64bb0789c4be304e93ed Mon Sep 17 00:00:00 2001 From: borispovod Date: Thu, 8 Oct 2020 17:09:14 +0300 Subject: [PATCH] infinity gas meter for check --- x/multisig/internal/keeper/call.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x/multisig/internal/keeper/call.go b/x/multisig/internal/keeper/call.go index 8a2e8c3c..6a810c98 100644 --- a/x/multisig/internal/keeper/call.go +++ b/x/multisig/internal/keeper/call.go @@ -29,7 +29,9 @@ func (k Keeper) SubmitCall(ctx sdk.Context, msg msmodule.MsMsg, uniqueID string, return sdkErrors.Wrapf(types.ErrWrongMsgRoute, "%q not found", msg.Route()) } + // TODO: solve do we need it at all during mainnet, probably we don't. cacheCtx, _ := ctx.CacheContext() + cacheCtx = cacheCtx.WithGasMeter(sdk.NewInfiniteGasMeter()) handler := k.router.GetRoute(msg.Route()) if err := handler(cacheCtx, msg); err != nil { return err