diff --git a/yarn-project/end-to-end/src/sample-dapp/index.mjs b/yarn-project/end-to-end/src/sample-dapp/index.mjs index dc6ba0c08bed..3aad3e254b92 100644 --- a/yarn-project/end-to-end/src/sample-dapp/index.mjs +++ b/yarn-project/end-to-end/src/sample-dapp/index.mjs @@ -99,7 +99,7 @@ async function mintPublicFunds(pxe) { // docs:start:showLogs const blockNumber = await pxe.getBlockNumber(); const logs = (await pxe.getUnencryptedLogs(blockNumber, 1)).logs; - const textLogs = L2BlockL2Logs.unrollLogs(logs).map(log => log.toString('ascii')); + const textLogs = logs.map(extendedLog => extendedLog.log.data.toString('ascii')); for (const log of textLogs) console.log(`Log emitted: ${log}`); // docs:end:showLogs }