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 91f94f5ef90e..2c68a011117e 100644 --- a/yarn-project/end-to-end/src/sample-dapp/index.mjs +++ b/yarn-project/end-to-end/src/sample-dapp/index.mjs @@ -40,7 +40,8 @@ async function mintPrivateFunds(pxe) { // We mint tokens to the owner const mintAmount = 20n; - await token.methods.mint_to_private(ownerWallet.getAddress(), mintAmount).send().wait(); + const from = ownerWallet.getAddress(); // we are setting from to owner here because of TODO(#9887) + await token.methods.mint_to_private(from, ownerWallet.getAddress(), mintAmount).send().wait(); await showPrivateBalances(pxe); } diff --git a/yarn-project/end-to-end/src/shared/browser.ts b/yarn-project/end-to-end/src/shared/browser.ts index 75e1019196e0..ea9dde82e564 100644 --- a/yarn-project/end-to-end/src/shared/browser.ts +++ b/yarn-project/end-to-end/src/shared/browser.ts @@ -252,7 +252,8 @@ export const browserTestSuite = ( console.log(`Contract Deployed: ${token.address}`); // We mint tokens to the owner - await token.methods.mint_to_private(owner.getAddress(), initialBalance).send().wait(); + const from = owner.getAddress(); // we are setting from to owner here because of TODO(#9887) + await token.methods.mint_to_private(from, owner.getAddress(), initialBalance).send().wait(); return [txHash.toString(), token.address.toString()]; },