Skip to content

Commit

Permalink
commenting to build
Browse files Browse the repository at this point in the history
  • Loading branch information
yashnevatia committed Nov 26, 2024
1 parent dc6de3b commit 5808c3d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/chains/evm/client/simulated_backend_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5808c3d

Please sign in to comment.