fix check nil bug

pull/3578/head
Rongjian Lan 4 years ago
parent d97cf9b6f4
commit 3b8feafae9
  1. 2
      hmy/blockchain.go

@ -315,7 +315,7 @@ func (hmy *Harmony) GetLogs(ctx context.Context, blockHash common.Hash, isEth bo
}
if isEth {
block := hmy.BlockChain.GetBlockByHash(blockHash)
if block != nil {
if block == nil {
return nil, errors.New("Missing block data")
}
txns := block.Transactions()

Loading…
Cancel
Save