Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 30, 2024
1 parent f3d867a commit b8625b5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
14 changes: 12 additions & 2 deletions yarn-project/end-to-end/src/e2e_lending_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ describe('e2e_lending_contract', () => {
const nonce = Fr.random();
await wallet.createAuthWit({
caller: lendingContract.address,
action: collateralAsset.methods.transfer_to_public(lendingAccount.address, lendingContract.address, depositAmount, nonce),
action: collateralAsset.methods.transfer_to_public(
lendingAccount.address,
lendingContract.address,
depositAmount,
nonce,
),
});
await lendingSim.progressSlots(SLOT_JUMP);
lendingSim.depositPrivate(lendingAccount.address, lendingAccount.key(), depositAmount);
Expand Down Expand Up @@ -157,7 +162,12 @@ describe('e2e_lending_contract', () => {
const nonce = Fr.random();
await wallet.createAuthWit({
caller: lendingContract.address,
action: collateralAsset.methods.transfer_to_public(lendingAccount.address, lendingContract.address, depositAmount, nonce),
action: collateralAsset.methods.transfer_to_public(
lendingAccount.address,
lendingContract.address,
depositAmount,
nonce,
),
});

await lendingSim.progressSlots(SLOT_JUMP);
Expand Down
7 changes: 6 additions & 1 deletion yarn-project/end-to-end/src/shared/uniswap_l1_l2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,12 @@ export const uniswapL1L2TestSuite = (
{
caller: uniswapL2Contract.address,
action: wethCrossChainHarness.l2Token.methods
.transfer_to_public(ownerAddress, uniswapL2Contract.address, wethAmountToBridge, nonceForWETHTransferToPublicApproval)
.transfer_to_public(
ownerAddress,
uniswapL2Contract.address,
wethAmountToBridge,
nonceForWETHTransferToPublicApproval,
)
.request(),
},
{ chainId: ownerWallet.getChainId(), version: ownerWallet.getVersion() },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class LendingSimulator {
}

depositPrivate(from: AztecAddress, onBehalfOf: Fr, amount: bigint) {
this.collateralAsset.transfer_to_public(from, this.lendingContract.address, amount);
this.collateralAsset.transferToPublic(from, this.lendingContract.address, amount);
this.deposit(onBehalfOf, amount);
}

Expand Down

0 comments on commit b8625b5

Please sign in to comment.