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

Commit

Permalink
set gas config
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Nov 2, 2023
1 parent 6ee586c commit 4c1cfd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cosmos/x/evm/plugins/state/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +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{})
}

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

0 comments on commit 4c1cfd6

Please sign in to comment.