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

Commit

Permalink
cache context query in plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Bear committed Nov 2, 2023
1 parent 4c1cfd6 commit 5b51d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cosmos/x/evm/plugins/state/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ 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).
p.latestQueryContext, _ = sdk.UnwrapSDKContext(ctx).
WithKVGasConfig(storetypes.GasConfig{}).
WithTransientKVGasConfig(storetypes.GasConfig{})
WithTransientKVGasConfig(storetypes.GasConfig{}).CacheContext()
}

// Reset sets up the state plugin for execution of a new transaction. It sets up the snapshottable
Expand Down

0 comments on commit 5b51d8d

Please sign in to comment.