Skip to content

Commit

Permalink
Fix wrong PXE call that has been broken for over a year
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Nov 8, 2024
1 parent f8d2189 commit 3e78ec7
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 @@ -90,7 +90,7 @@ async function mintPublicFunds(pxe) {

// docs:start:showLogs
const blockNumber = await pxe.getBlockNumber();
const logs = (await pxe.getUnencryptedLogs(blockNumber, 1)).logs;
const logs = (await pxe.getUnencryptedLogs({ fromBlock: blockNumber - 1 })).logs;
const textLogs = logs.map(extendedLog => extendedLog.toHumanReadable().slice(0, 200));
for (const log of textLogs) console.log(`Log emitted: ${log}`);
// docs:end:showLogs
Expand Down

0 comments on commit 3e78ec7

Please sign in to comment.