Skip to content

Commit

Permalink
PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Oct 28, 2024
1 parent 62a5eb9 commit 1493e77
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rpc/backend/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,7 @@ func (b *Backend) HeaderByNumber(blockNum rpctypes.BlockNumber) (*ethtypes.Heade
return nil, err
}

ethHeader := rpctypes.EthHeaderFromTendermint(resBlock.Block.Header, bloom, baseFee, validatorAccount)
return ethHeader, nil
return rpctypes.EthHeaderFromTendermint(resBlock.Block.Header, bloom, baseFee, validatorAccount), nil
}

// HeaderByHash returns the block header identified by hash.
Expand Down Expand Up @@ -450,8 +449,7 @@ func (b *Backend) HeaderByHash(blockHash common.Hash) (*ethtypes.Header, error)
return nil, err
}

ethHeader := rpctypes.EthHeaderFromTendermint(resBlock.Block.Header, bloom, baseFee, validatorAccount)
return ethHeader, nil
return rpctypes.EthHeaderFromTendermint(resBlock.Block.Header, bloom, baseFee, validatorAccount), nil
}

// BlockBloom query block bloom filter from block results
Expand Down

0 comments on commit 1493e77

Please sign in to comment.