Регистрация: wallet.key работает и с пустым паролем
This commit is contained in:
parent
14cc3be620
commit
bdcab5ee05
@ -1,2 +1,2 @@
|
|||||||
client.version=1.2.19
|
client.version=1.2.20
|
||||||
server.version=1.2.19
|
server.version=1.2.20
|
||||||
|
|||||||
@ -107,9 +107,6 @@ export function render({ navigate }) {
|
|||||||
|
|
||||||
const deriveUserWalletAddress = async () => {
|
const deriveUserWalletAddress = async () => {
|
||||||
const draftPassword = String(state.registrationDraft.password ?? '');
|
const draftPassword = String(state.registrationDraft.password ?? '');
|
||||||
if (!draftPassword) {
|
|
||||||
throw new Error('Не найден пароль регистрации для вычисления wallet.key');
|
|
||||||
}
|
|
||||||
const wallet = await deriveWalletFromPassword(draftPassword);
|
const wallet = await deriveWalletFromPassword(draftPassword);
|
||||||
const address = String(wallet?.address || '').trim();
|
const address = String(wallet?.address || '').trim();
|
||||||
if (!address) throw new Error('Не удалось вычислить адрес wallet.key');
|
if (!address) throw new Error('Не удалось вычислить адрес wallet.key');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user