mirror of
https://github.com/logos-blockchain/logos-execution-zone-wallet-ui.git
synced 2026-07-29 22:23:30 +00:00
minor fix on wallet storage parsing
This commit is contained in:
parent
d4a8988098
commit
535481fbb7
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user