ca476d0871
* changelog * evm: state transitions enabled params * changelog entry * changelog
25 lines
1021 B
Go
25 lines
1021 B
Go
package types
|
|
|
|
import (
|
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
)
|
|
|
|
// NOTE: We can't use 1 since that error code is reserved for internal errors.
|
|
|
|
var (
|
|
// ErrInvalidState returns an error resulting from an invalid Storage State.
|
|
ErrInvalidState = sdkerrors.Register(ModuleName, 2, "invalid storage state")
|
|
|
|
// ErrChainConfigNotFound returns an error if the chain config cannot be found on the store.
|
|
ErrChainConfigNotFound = sdkerrors.Register(ModuleName, 3, "chain configuration not found")
|
|
|
|
// ErrInvalidChainConfig returns an error resulting from an invalid ChainConfig.
|
|
ErrInvalidChainConfig = sdkerrors.Register(ModuleName, 4, "invalid chain configuration")
|
|
|
|
// ErrCreateDisabled returns an error if the EnableCreate parameter is false.
|
|
ErrCreateDisabled = sdkerrors.Register(ModuleName, 5, "EVM Create operation is disabled")
|
|
|
|
// ErrCallDisabled returns an error if the EnableCall parameter is false.
|
|
ErrCallDisabled = sdkerrors.Register(ModuleName, 6, "EVM Call operation is disabled")
|
|
)
|