Перевести тестовый контур на t.shineup.me

This commit is contained in:
AidarKC
2026-06-25 13:44:22 +04:00
parent 112ab4d5d5
commit f0e1ab3af8
22 changed files with 131 additions and 58 deletions
@@ -14,6 +14,7 @@ import {
getBalanceSol,
getTopupSiteUrl,
} from '../services/solana-wallet-service.js';
import { loadSolanaWeb3 } from '../vendor/solana-web3-loader.js';
import {
formatSolanaErrorDetails,
isUserAlreadyExistsSolanaError,
@@ -185,7 +186,7 @@ export function render({ navigate }) {
const raw = atob(publicKeyB64);
const bytes = new Uint8Array(raw.length);
for (let i = 0; i < raw.length; i++) bytes[i] = raw.charCodeAt(i);
const { PublicKey } = await import('https://esm.sh/@solana/web3.js@1.98.4');
const { PublicKey } = await loadSolanaWeb3();
const address = new PublicKey(bytes).toBase58();
state.registrationPayment.walletAddress = address;
walletValue.value = address;