Skip to content

Commit

Permalink
display error message when attempting to mix from account 0 and it is…
Browse files Browse the repository at this point in the history
… not the master wallet
  • Loading branch information
craigraw committed Nov 8, 2023
1 parent 995d2c5 commit 218e751
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ public void sendSelected(ActionEvent event) {
}

public void mixSelected(ActionEvent event) {
if(!getWalletForm().getWallet().isMasterWallet() && getWalletForm().getWallet().getStandardAccountType() == StandardAccount.ACCOUNT_0) {
showErrorDialog("Invalid Whirlpool wallet", "Create a new wallet with Account #0 as the first account.");
return;
}

List<UtxoEntry> selectedEntries = getSelectedUtxos();
WhirlpoolDialog whirlpoolDialog = new WhirlpoolDialog(getWalletForm().getMasterWalletId(), getWalletForm().getWallet(), selectedEntries);
whirlpoolDialog.initOwner(utxosTable.getScene().getWindow());
Expand Down

0 comments on commit 218e751

Please sign in to comment.