Node/EVM: Celo TimeOfBlockByHash is wrong

This commit is contained in:
Bruce Riley 2023-11-21 17:57:28 -06:00 committed by Paul Noel
parent 5ed7035532
commit 1152b5bd64
1 changed files with 2 additions and 2 deletions

View File

@ -130,12 +130,12 @@ func (c *CeloConnector) TransactionReceipt(ctx context.Context, txHash ethCommon
}
func (c *CeloConnector) TimeOfBlockByHash(ctx context.Context, hash ethCommon.Hash) (uint64, error) {
block, err := c.client.BlockByHash(ctx, celoCommon.BytesToHash(hash.Bytes()))
block, err := c.client.HeaderByHash(ctx, celoCommon.BytesToHash(hash.Bytes()))
if err != nil {
return 0, err
}
return block.Time(), err
return block.Time, err
}
func (c *CeloConnector) ParseLogMessagePublished(ethLog ethTypes.Log) (*ethAbi.AbiLogMessagePublished, error) {