From bb47675c783a13df295e095b286f8fe0d486778e Mon Sep 17 00:00:00 2001 From: Devon Bear Date: Thu, 2 Nov 2023 18:08:01 -0400 Subject: [PATCH] ree --- cosmos/x/evm/plugins/state/plugin.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cosmos/x/evm/plugins/state/plugin.go b/cosmos/x/evm/plugins/state/plugin.go index 02fa0ae22..ab4c9b470 100644 --- a/cosmos/x/evm/plugins/state/plugin.go +++ b/cosmos/x/evm/plugins/state/plugin.go @@ -140,9 +140,7 @@ func (p *plugin) SetPrecompileLogFactory(plf events.PrecompileLogFactory) { // Prepare sets up the context on the state plugin for use in JSON-RPC calls. // Prepare implements `core.StatePlugin`. func (p *plugin) Prepare(ctx context.Context) { - p.latestQueryContext, _ = sdk.UnwrapSDKContext(ctx). - WithKVGasConfig(storetypes.GasConfig{}). - WithTransientKVGasConfig(storetypes.GasConfig{}).CacheContext() + p.latestQueryContext = sdk.UnwrapSDKContext(ctx) } // Reset sets up the state plugin for execution of a new transaction. It sets up the snapshottable @@ -538,7 +536,7 @@ func (p *plugin) StateAtBlockNumber(number uint64) (core.StatePlugin, error) { if p.latestQueryContext.MultiStore() == nil { ctx = p.latestQueryContext.WithEventManager(sdk.NewEventManager()) } else { - ctx, _ = p.latestQueryContext.WithEventManager(sdk.NewEventManager()).CacheContext() + ctx, _ = p.latestQueryContext.CacheContext() } } else { // Get the query context at the given height.