diff --git a/eth/api.go b/eth/api.go index 3ce8a2d1b8e5e..5642ef4c3f127 100644 --- a/eth/api.go +++ b/eth/api.go @@ -586,5 +586,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") }