Skip to content

Commit

Permalink
fix: Get blob from L1 (#282)
Browse files Browse the repository at this point in the history
* Fix get blobs l1

* Remove logs
  • Loading branch information
gianbelinche authored Sep 26, 2024
1 parent 869babb commit 5021488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get_all_blobs/getallblobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async function getTransactions(validatorTimelockAddress, commitBatchesSharedBrid
let jsonArray = [];
for (let i = 0; i <= latestBlock; i++) {
const block = await web3.eth.getBlock(i, true);
block.transactions.forEach(async tx => {
await Promise.all(block.transactions.map(async tx => {
if (tx.to && (tx.to.toLowerCase() == validatorTimelockAddress.toLowerCase())) {
const input = tx.input;
const txSelector = input.slice(0, 10);
Expand All @@ -177,7 +177,7 @@ async function getTransactions(validatorTimelockAddress, commitBatchesSharedBrid
});
}
}
});
}));
}
const jsonString = JSON.stringify(jsonArray, null, 2);
fs.writeFileSync("blob_data.json", jsonString, 'utf8');
Expand Down

0 comments on commit 5021488

Please sign in to comment.