diff --git a/eth/api.go b/eth/api.go index ee66e9371..56af61c73 100644 --- a/eth/api.go +++ b/eth/api.go @@ -366,6 +366,7 @@ func (api *PublicDebugAPI) AccountRange(blockNrOrHash rpc.BlockNumberOrHash, sta if block == nil { return state.IteratorDump{}, fmt.Errorf("block %s not found", hash.Hex()) } + } else { blockNumber = block.NumberU64() }