diff --git a/hmy/blockchain.go b/hmy/blockchain.go index 0d47774f2..606a4b46a 100644 --- a/hmy/blockchain.go +++ b/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()