Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
benceharomi committed Jul 8, 2024
1 parent 7691382 commit fb65d9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/tests/upgrade-test/tests/upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,15 @@ describe('Upgrade test', function () {
const initialL1BatchNumber = await tester.web3Provider.getL1BatchNumber();

const baseToken = await tester.syncWallet.provider.getBaseTokenContractAddress();
console.log('Base token address:', baseToken);

if (!zksync.utils.isAddressEq(baseToken, zksync.utils.ETH_ADDRESS_IN_CONTRACTS)) {
console.log('Approving ERC20 token');
await (await tester.syncWallet.approveERC20(baseToken, ethers.MaxUint256)).wait();
console.log('Minting ERC20 token');
console.log('balance:', await tester.syncWallet.getBalance(baseToken, 'committed'));
await mintToWallet(baseToken, tester.syncWallet, depositAmount * 10n);
console.log('balance:', await tester.syncWallet.getBalance(baseToken, 'committed'));
}

const firstDepositHandle = await tester.syncWallet.deposit({
Expand Down

0 comments on commit fb65d9c

Please sign in to comment.