From 535481fbb77f6c365e202cdcce016d013b87e702 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Fri, 5 Jun 2026 02:38:15 -0300 Subject: [PATCH] minor fix on wallet storage parsing --- src/LEZWalletBackend.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/LEZWalletBackend.cpp b/src/LEZWalletBackend.cpp index 12308bc..ad9111c 100644 --- a/src/LEZWalletBackend.cpp +++ b/src/LEZWalletBackend.cpp @@ -123,6 +123,9 @@ void LEZWalletBackend::openIfPathsConfigured() refreshAccounts(); refreshBlockHeights(); refreshSequencerAddr(); + } else { + qWarning() << "LEZWalletBackend: failed to open wallet, error" << err + << "config:" << configPath() << "storage:" << storagePath(); } } @@ -289,12 +292,13 @@ QString LEZWalletBackend::transferDeshielded(QString fromHex, QString toHex, QSt bool LEZWalletBackend::createNew(QString configPath, QString storagePath, QString password) { - const QString localPath = toLocalPath(configPath); - int err = m_logos->logos_execution_zone.create_new(localPath, storagePath, password); + const QString localConfigPath = toLocalPath(configPath); + const QString localStoragePath = toLocalPath(storagePath); + int err = m_logos->logos_execution_zone.create_new(localConfigPath, localStoragePath, password); if (err != WALLET_FFI_SUCCESS) return false; - persistConfigPath(localPath); - persistStoragePath(storagePath); + persistConfigPath(localConfigPath); + persistStoragePath(localStoragePath); setIsWalletOpen(true); refreshAccounts(); refreshBlockHeights();