Skip to content

Commit

Permalink
infinity gas meter for check (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
borispovod authored Oct 8, 2020
1 parent 4096f03 commit 6d08080
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/multisig/internal/keeper/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d08080

Please sign in to comment.