SHA256
Разделить среды и закрепить лицензии в HEADER 1.0
This commit is contained in:
@@ -3,6 +3,7 @@ export const DEVNET_FAUCET_RPC = 'https://api.devnet.solana.com';
|
||||
let cluster = '';
|
||||
export function setSolanaCluster(value) {
|
||||
const next = String(value || '').toLowerCase();
|
||||
if (!next) { cluster = ''; return; }
|
||||
if (next !== 'devnet' && next !== 'mainnet-beta' && next !== 'testnet') throw new Error(`Unsupported server Solana cluster: ${value}`);
|
||||
cluster = next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user