Skip to content

Commit

Permalink
Update BaseIntegrationEnv.java
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion authored Nov 17, 2024
1 parent f967796 commit 6126b22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/java/io/zksync/integration/BaseIntegrationEnv.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,12 @@ public void testPrepare() throws Exception {
depositToken(L1_DAI);
System.out.println("L1 DAI balance after: " + testWallet.getBalanceL1().send());
System.out.println("L2 DAI balance after: " + testWallet.getBalance(l2Dai).send());

String tokenAddress = deployToken();
deployPaymaster(tokenAddress);

String code = zksync.ethGetCode("0x841c43fa5d8fffdb9efe3358906f7578d8700dd4", DefaultBlockParameterName.LATEST).send().getCode();
if (code.isEmpty()) {
String tokenAddress = deployToken();
deployPaymaster(tokenAddress);
}
}

public void depositToken(String tokenAddress) throws Exception {
Expand Down

0 comments on commit 6126b22

Please sign in to comment.