Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
ree
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Nov 2, 2023
1 parent 17dc35c commit bb47675
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cosmos/x/evm/plugins/state/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit bb47675

Please sign in to comment.