Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Nov 11, 2024
1 parent 0752c7a commit 086bc81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion yarn-project/end-to-end/src/sample-dapp/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 2 additions & 1 deletion yarn-project/end-to-end/src/shared/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()];
},
Expand Down

0 comments on commit 086bc81

Please sign in to comment.