Commit 8582fc16 authored by CAPtheorem's avatar CAPtheorem Committed by GitHub

Define L1 Starting block via OwnershipTransferred rather than AddressSet (#1129)

* Update service.ts

* Create thirty-years-look.md
Co-authored-by: default avatarsmartcontracts <kelvinfichter@gmail.com>
parent 017d3231
---
'@eth-optimism/data-transport-layer': minor
---
Define L1 Starting block via OwnershipTransferred (occurring on block 1) rather than AddressSet (occuring on block 2 onwards)
...@@ -423,7 +423,7 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> { ...@@ -423,7 +423,7 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> {
for (let i = 0; i < currentL1Block; i += 1000000) { for (let i = 0; i < currentL1Block; i += 1000000) {
const events = await this.state.contracts.Lib_AddressManager.queryFilter( const events = await this.state.contracts.Lib_AddressManager.queryFilter(
this.state.contracts.Lib_AddressManager.filters.AddressSet(), this.state.contracts.Lib_AddressManager.filters.OwnershipTransferred(),
i, i,
Math.min(i + 1000000, currentL1Block) Math.min(i + 1000000, currentL1Block)
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment