18 lines
468 B
Go
18 lines
468 B
Go
|
package keeper
|
||
|
|
||
|
import (
|
||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||
|
|
||
|
"github.com/cosmos/ethermint/x/evm/types"
|
||
|
)
|
||
|
|
||
|
// GetParams returns the total set of evm parameters.
|
||
|
func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) {
|
||
|
return k.CommitStateDB.WithContext(ctx).GetParams()
|
||
|
}
|
||
|
|
||
|
// SetParams sets the evm parameters to the param space.
|
||
|
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
|
||
|
k.CommitStateDB.WithContext(ctx).SetParams(params)
|
||
|
}
|