Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 16, 2023
1 parent ab564f1 commit e26f1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/end-to-end/src/sample-dapp/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e26f1d9

Please sign in to comment.