You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Accounts/worldcupticketbooking/workflows/src/main/java/com/t20worldcup/flows/DVPAccountsHostedOnDifferentNodes.java
//List<Object> sum = getServiceHub().getVaultService().queryBy(FungibleToken.class, queryCriteriaForTokenBalance).component5();
129
136
130
-
if(sum.size() ==0)
137
+
if(fundsAvailable <0)
131
138
thrownewFlowException(buyerAccountName + "has 0 token balance. Please ask the Bank to issue some cash.");
132
-
else {
133
-
LongtokenBalance = (Long) sum.get(0);
134
-
if(tokenBalance < costOfTicket)
135
-
thrownewFlowException("Available token balance of " + buyerAccountName+ " is less than the cost of the ticket. Please ask the Bank to issue some cash if you wish to buy the ticket ");
136
-
}
139
+
// else {
140
+
// Long tokenBalance = (Long) sum.get(0);
141
+
// if(tokenBalance < costOfTicket)
142
+
// throw new FlowException("Available token balance of " + buyerAccountName+ " is less than the cost of the ticket. Please ask the Bank to issue some cash if you wish to buy the ticket ");
Copy file name to clipboardExpand all lines: Accounts/worldcupticketbooking/workflows/src/main/java/com/t20worldcup/flows/MoveTokensBetweenAccounts.java
0 commit comments