mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-28 05:47:52 +00:00
test backward compability wallet 1
This commit is contained in:
parent
e5db082a9b
commit
2a2bfb7267
@ -607,7 +607,7 @@ function App() {
|
||||
let wallet = structuredClone(rawWallet);
|
||||
|
||||
const res = await decryptStoredWallet(password, wallet);
|
||||
const wallet2 = new PhraseWallet(res, walletVersion);
|
||||
const wallet2 = new PhraseWallet(res, wallet?.version || walletVersion);
|
||||
wallet = await wallet2.generateSaveWalletData(
|
||||
password,
|
||||
crypto.kdfThreads,
|
||||
|
@ -232,7 +232,8 @@ export async function userInfoCase(request, event) {
|
||||
export async function decryptWalletCase(request, event) {
|
||||
try {
|
||||
const { password, wallet } = request.payload;
|
||||
const response = await decryptWallet({password, wallet, walletVersion});
|
||||
console.log('wallet', wallet)
|
||||
const response = await decryptWallet({password, wallet, walletVersion: wallet?.version || walletVersion});
|
||||
event.source.postMessage(
|
||||
{
|
||||
requestId: request.requestId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user