diff --git a/eth/api.go b/eth/api.go index e3fef8950b01..082c4cf413e3 100644 --- a/eth/api.go +++ b/eth/api.go @@ -653,5 +653,5 @@ func (api *DebugAPI) GetAccessibleState(from, to rpc.BlockNumber) (uint64, error return uint64(i), nil } } - return 0, fmt.Errorf("no state found") + return 0, errors.New("no state found") }