From 3e78ec721285fcd533cff61329a8e156958e2d65 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Fri, 8 Nov 2024 19:37:17 -0300 Subject: [PATCH] Fix wrong PXE call that has been broken for over a year --- yarn-project/end-to-end/src/sample-dapp/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 62f43ba68d06..91f94f5ef90e 100644 --- a/yarn-project/end-to-end/src/sample-dapp/index.mjs +++ b/yarn-project/end-to-end/src/sample-dapp/index.mjs @@ -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