From 07bf75583a5a883f20bf2a380ca8288013c6ec35 Mon Sep 17 00:00:00 2001 From: dudong2 Date: Thu, 31 Oct 2024 01:21:44 +0900 Subject: [PATCH] chore: Expose NewEhtAnteHandler --- app/ante/handler_options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/ante/handler_options.go b/app/ante/handler_options.go index ccf446a88a..84665bf931 100644 --- a/app/ante/handler_options.go +++ b/app/ante/handler_options.go @@ -76,6 +76,10 @@ func (options HandlerOptions) validate() error { return nil } +func NewEthAnteHandler(options HandlerOptions) sdk.AnteHandler { + return newEthAnteHandler(options) +} + func newEthAnteHandler(options HandlerOptions) sdk.AnteHandler { return func(ctx sdk.Context, tx sdk.Tx, simulate bool) (sdk.Context, error) { blockCfg, err := options.EvmKeeper.EVMBlockConfig(ctx, options.EvmKeeper.ChainID())