From 5808c3ddd9eb796e97e865824c0c270ab3acec54 Mon Sep 17 00:00:00 2001 From: yashnevatia Date: Tue, 26 Nov 2024 04:21:03 +0000 Subject: [PATCH] commenting to build --- core/chains/evm/client/simulated_backend_client.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/chains/evm/client/simulated_backend_client.go b/core/chains/evm/client/simulated_backend_client.go index 654aebf0a7..083162c768 100644 --- a/core/chains/evm/client/simulated_backend_client.go +++ b/core/chains/evm/client/simulated_backend_client.go @@ -717,13 +717,14 @@ func (c *SimulatedBackendClient) ethGetHeaderByNumber(ctx context.Context, resul } func (c *SimulatedBackendClient) LatestFinalizedBlock(ctx context.Context) (*evmtypes.Head, error) { - block := c.b.Blockchain().CurrentFinalBlock() + // block := c.b.Blockchain().CurrentFinalBlock() + block, _ := c.b.BlockByNumber(ctx, big.NewInt(0)) return &evmtypes.Head{ EVMChainID: ubig.NewI(c.chainId.Int64()), Hash: block.Hash(), - Number: block.Number.Int64(), - ParentHash: block.ParentHash, - Timestamp: time.Unix(int64(block.Time), 0), + // Number: block.Number.Int64(), + // ParentHash: block.ParentHash, + // Timestamp: time.Unix(int64(block.Time), 0), }, nil }