Skip to content

Commit

Permalink
Lowercase walletname fix
Browse files Browse the repository at this point in the history
  • Loading branch information
n9lsjr committed Feb 1, 2024
1 parent 424099e commit d5a87ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/electron.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,15 @@ ipcMain.on("rewind-wallet", async (e, height) => {
});

ipcMain.handle("create-wallet", async (e, walletName, password, node) => {

try {

if (!daemon) {
daemon = new WB.Daemon(node.url, node.port, node.ssl);
}

walletName = walletName.toLowerCase()

walletBackend = await WB.WalletBackend.createWallet(daemon);

const [seed, err] = await walletBackend.getMnemonicSeed();
Expand Down

0 comments on commit d5a87ad

Please sign in to comment.