mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-23 19:37:52 +00:00
fix wallet version
This commit is contained in:
parent
2a2bfb7267
commit
37bd52aefa
@ -2265,6 +2265,7 @@ export async function sendCoin(
|
|||||||
let keyPair = "";
|
let keyPair = "";
|
||||||
if (skipConfirmPassword) {
|
if (skipConfirmPassword) {
|
||||||
const resKeyPair = await getKeyPair();
|
const resKeyPair = await getKeyPair();
|
||||||
|
|
||||||
const parsedData = resKeyPair;
|
const parsedData = resKeyPair;
|
||||||
const uint8PrivateKey = Base58.decode(parsedData.privateKey);
|
const uint8PrivateKey = Base58.decode(parsedData.privateKey);
|
||||||
const uint8PublicKey = Base58.decode(parsedData.publicKey);
|
const uint8PublicKey = Base58.decode(parsedData.publicKey);
|
||||||
@ -2274,7 +2275,7 @@ export async function sendCoin(
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
const response = await decryptStoredWallet(password, wallet);
|
const response = await decryptStoredWallet(password, wallet);
|
||||||
const wallet2 = new PhraseWallet(response, walletVersion);
|
const wallet2 = new PhraseWallet(response, wallet?.version || walletVersion);
|
||||||
|
|
||||||
keyPair = wallet2._addresses[0].keyPair;
|
keyPair = wallet2._addresses[0].keyPair;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user