Skip to content

Commit

Permalink
Node/EVM: Celo TimeOfBlockByHash is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley authored and panoel committed Nov 22, 2023
1 parent 5ed7035 commit 1152b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/pkg/watchers/evm/connectors/celo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1152b5b

Please sign in to comment.