diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index 663bea84ad..510291ae7b 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -24,7 +24,6 @@ import ( ethermint "github.com/tharsis/ethermint/types" "github.com/tharsis/ethermint/x/evm/types" - evmtypes "github.com/tharsis/ethermint/x/evm/types" ) var _ types.QueryServer = Keeper{} @@ -492,7 +491,7 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type if failed { if result != nil && result.VmError != vm.ErrOutOfGas.Error() { if result.VmError == vm.ErrExecutionReverted.Error() { - return nil, evmtypes.NewExecErrorWithReason(result.Ret) + return nil, types.NewExecErrorWithReason(result.Ret) } return nil, status.Error(codes.Internal, result.VmError) } diff --git a/x/evm/types/errors.go b/x/evm/types/errors.go index 94fad1fc6d..9cf95e1f84 100644 --- a/x/evm/types/errors.go +++ b/x/evm/types/errors.go @@ -107,4 +107,4 @@ func (e *revertError) ErrorCode() int { // ErrorData returns the hex encoded revert reason. func (e *revertError) ErrorData() interface{} { return e.reason -} \ No newline at end of file +}