@@ -15,7 +15,7 @@ import { sleep } from '@aztec/foundation/sleep';
1515import { bufferToHex , withoutHexPrefix } from '@aztec/foundation/string' ;
1616import { openTmpStore } from '@aztec/kv-store/lmdb-v2' ;
1717import { type InboxAbi , RollupAbi } from '@aztec/l1-artifacts' ;
18- import { CommitteeAttestation , L2Block , L2BlockSourceEvents , getBlockBlobFields } from '@aztec/stdlib/block' ;
18+ import { CommitteeAttestation , L2Block , L2BlockSourceEvents } from '@aztec/stdlib/block' ;
1919import type { L1RollupConstants } from '@aztec/stdlib/epoch-helpers' ;
2020import { PrivateLog } from '@aztec/stdlib/logs' ;
2121import { InboxLeaf } from '@aztec/stdlib/messaging' ;
@@ -1005,7 +1005,7 @@ async function makeRollupTx(l2Block: L2Block, signers: Secp256k1Signer[] = []) {
10051005 * @returns Versioned blob hashes.
10061006 */
10071007async function makeVersionedBlobHashes ( l2Block : L2Block ) : Promise < `0x${string } `[ ] > {
1008- const blobFields = getBlockBlobFields ( l2Block . body . txEffects ) ;
1008+ const blobFields = l2Block . body . toBlobFields ( ) ;
10091009 const blobs = await Blob . getBlobsPerBlock ( blobFields ) ;
10101010 const blobHashes = blobs . map ( b => b . getEthVersionedBlobHash ( ) ) ;
10111011 return blobHashes . map ( h => `0x${ h . toString ( 'hex' ) } ` as `0x${string } )`) ;
@@ -1017,7 +1017,7 @@ async function makeVersionedBlobHashes(l2Block: L2Block): Promise<`0x${string}`[
10171017 * @returns The blobs.
10181018 */
10191019async function makeBlobsFromBlock ( block : L2Block ) {
1020- const blobFields = getBlockBlobFields ( block . body . txEffects ) ;
1020+ const blobFields = block . body . toBlobFields ( ) ;
10211021 const blobs = await Blob . getBlobsPerBlock ( blobFields ) ;
10221022 return blobs . map ( ( blob , index ) => new BlobWithIndex ( blob , index ) ) ;
10231023}
0 commit comments