Перевести тестовый контур на 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
+2 -1
View File
@@ -6,6 +6,7 @@ import {
getTopupSiteUrl,
requestAirdropSol,
} from '../services/solana-wallet-service.js';
import { loadSolanaWeb3 } from '../vendor/solana-web3-loader.js';
export const pageMeta = { id: 'topup-view', title: 'Пополнение счета', showAppChrome: false };
@@ -20,7 +21,7 @@ async function clientWalletAddressFromBundle() {
const raw = atob(keyBundle.clientPair.publicKeyB64);
const bytes = new Uint8Array(raw.length);
for (let i = 0; i < raw.length; i += 1) bytes[i] = raw.charCodeAt(i);
const { PublicKey } = await import('https://esm.sh/@solana/web3.js@1.98.4');
const { PublicKey } = await loadSolanaWeb3();
return new PublicKey(bytes).toBase58();
}