SHA256
Обновить настройки серверов и выбор Solana RPC
This commit is contained in:
@@ -246,20 +246,3 @@ export async function refreshDeviceBalance({ endpoint, deviceAddress, targetNode
|
||||
setText(targetNode, `Баланс device: ${formatSol(balance.sol, 6)} SOL (${balance.lamports} lamports)`);
|
||||
return balance;
|
||||
}
|
||||
|
||||
export function buildDevnetTopupUrl(walletAddress) {
|
||||
const cleanWallet = String(walletAddress || '').trim();
|
||||
const url = new URL('../devnet-topup-view', window.location.href);
|
||||
if (cleanWallet) {
|
||||
url.searchParams.set('wallet', cleanWallet);
|
||||
}
|
||||
return url.toString();
|
||||
}
|
||||
|
||||
export function openDevnetTopup(walletAddress) {
|
||||
const cleanWallet = String(walletAddress || '').trim();
|
||||
if (!cleanWallet) {
|
||||
throw new Error('Сначала укажите device-адрес');
|
||||
}
|
||||
window.open(buildDevnetTopupUrl(cleanWallet), '_blank', 'noopener');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user