Улучшить UI регистрации и связанные сценарии

This commit is contained in:
AidarKC
2026-11-08 18:04:06 +03:00
parent 9405f28525
commit 4068465ee6
66 changed files with 842 additions and 221 deletions
@@ -473,7 +473,7 @@ export async function readShineUserPda({ login, solanaEndpoint }) {
const [pda] = solana.PublicKey.findProgramAddressSync(
cleanLogin.includes('@') ? [await userPdaSeed32(cleanLogin)] : [new TextEncoder().encode(SHINE_USERS_USER_PDA_SEED_PREFIX), new TextEncoder().encode(cleanLogin)], usersProgram);
const info = await connection.getAccountInfo(pda, 'confirmed');
if (!info?.data) throw new Error(`PDA пользователя @${cleanLogin} не найдена`);
if (!info?.data) throw new Error(`PDA пользователя ${cleanLogin} не найдена`);
return { ...parseShineUserPda(new Uint8Array(info.data)), userPda: pda.toBase58(), pdaAddress: pda.toBase58(), endpoint };
}