Skip to content

Commit

Permalink
rpc: fix parent hash format (evmos#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-facs authored Jul 3, 2021
1 parent e6f1874 commit 0fc3472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethereum/rpc/types/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func FormatBlock(
return map[string]interface{}{
"number": hexutil.Uint64(header.Height),
"hash": hexutil.Bytes(header.Hash()),
"parentHash": hexutil.Bytes(header.LastBlockID.Hash),
"parentHash": common.BytesToHash(header.LastBlockID.Hash.Bytes()),
"nonce": ethtypes.BlockNonce{}, // PoW specific
"sha3Uncles": ethtypes.EmptyUncleHash, // No uncles in Tendermint
"logsBloom": bloom,
Expand Down

0 comments on commit 0fc3472

Please sign in to comment.