Skip to content

Commit

Permalink
getDeposit method params position updated in dex inttest
Browse files Browse the repository at this point in the history
  • Loading branch information
sagars committed Nov 22, 2024
1 parent 911856f commit 68d6cbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ void testWithdraw() {
byte[] tokenDeposit = "{\"method\":\"_deposit\",\"params\":{\"none\":\"none\"}}".getBytes();
this.mintAndTransferTestTokens(tokenDeposit);
BigInteger withdrawAMount = BigInteger.valueOf(50);
BigInteger balanceBeforeWithdraw = dexUserScoreClient.getDeposit(userAddress, tokenAAddress);
BigInteger balanceBeforeWithdraw = dexUserScoreClient.getDeposit(tokenAAddress, userAddress);
//withdraw test token
dexUserScoreClient.withdraw(tokenAAddress, withdrawAMount);

BigInteger balanceAfterWithdraw = dexUserScoreClient.getDeposit(userAddress, tokenAAddress);
BigInteger balanceAfterWithdraw = dexUserScoreClient.getDeposit(tokenAAddress, userAddress);

assert balanceBeforeWithdraw.equals(balanceAfterWithdraw.add(withdrawAMount));
}
Expand Down

0 comments on commit 68d6cbf

Please sign in to comment.