bump error codes (#279)

This commit is contained in:
Federico Kunze 2020-05-05 12:54:03 -04:00 committed by GitHub
parent a99fbfdc2b
commit 9d208e165b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,13 +9,15 @@ const (
RootCodespace = "ethermint" RootCodespace = "ethermint"
) )
// NOTE: We can't use 1 since that error code is reserved for internal errors.
var ( var (
// ErrInvalidValue returns an error resulting from an invalid value. // ErrInvalidValue returns an error resulting from an invalid value.
ErrInvalidValue = sdkerrors.Register(RootCodespace, 1, "invalid value") ErrInvalidValue = sdkerrors.Register(RootCodespace, 2, "invalid value")
// ErrInvalidChainID returns an error resulting from an invalid chain ID. // ErrInvalidChainID returns an error resulting from an invalid chain ID.
ErrInvalidChainID = sdkerrors.Register(RootCodespace, 2, "invalid chain ID") ErrInvalidChainID = sdkerrors.Register(RootCodespace, 3, "invalid chain ID")
// ErrVMExecution returns an error resulting from an error in EVM execution. // ErrVMExecution returns an error resulting from an error in EVM execution.
ErrVMExecution = sdkerrors.Register(RootCodespace, 3, "error while executing evm transaction") ErrVMExecution = sdkerrors.Register(RootCodespace, 4, "error while executing evm transaction")
) )