Skip to content

Commit abb1bfd

Browse files
committed
unify
1 parent cfafd3e commit abb1bfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rpc/backend/comet_to_eth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func (b *Backend) ReceiptsFromCometBlock(
233233
b.Logger.Error("failed to fetch Base Fee from prunned block. Check node prunning configuration", "height", resBlock.Block.Height, "error", err)
234234
}
235235

236-
blockHash := common.BytesToHash(resBlock.Block.Header.Hash())
236+
blockHash := common.BytesToHash(resBlock.BlockID.Hash)
237237
receipts := make([]*ethtypes.Receipt, len(msgs))
238238
cumulatedGasUsed := uint64(0)
239239
for i, ethMsg := range msgs {

rpc/backend/tx_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ func (b *Backend) GetTransactionByBlockAndIndex(block *cmtrpctypes.ResultBlock,
403403
index := uint64(idx) // #nosec G115 -- checked for int overflow already
404404
return rpctypes.NewTransactionFromMsg(
405405
msg,
406-
common.BytesToHash(block.Block.Hash()),
406+
common.BytesToHash(block.BlockID.Hash),
407407
height,
408408
blockTime,
409409
index,

0 commit comments

Comments
 (0)