@@ -343,9 +343,9 @@ import { ApiPromise, WsProvider } from '@polkadot/api';
343343import { typesBundleForPolkadot } from '@crustio/type-definitions';
344344import { Keyring } from '@polkadot/keyring';
345345
346- const crustChainEndpoint = 'wss://rpc.crust.network '; // More endpoints: https://github.com/crustio/crust-apps/blob/master/packages/apps-config/src/endpoints/production.ts#L9
346+ const crustChainEndpoint = 'wss://rpc.{{currentHostname}} '; // More endpoints: https://github.com/crustio/crust-apps/blob/master/packages/apps-config/src/endpoints/production.ts#L9
347347const ipfsW3GW = 'https://crustipfs.xyz'; // More web3 authed gateways: https://github.com/crustio/ipfsscan/blob/main/lib/constans.ts#L29
348- const crustSeeds = 'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx'; // Create account(seeds): https://wiki.crust.network /docs/en/crustAccount
348+ const crustSeeds = 'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx'; // Create account(seeds): https://wiki.{{currentHostname}} /docs/en/crustAccount
349349const api = new ApiPromise({
350350 provider: new WsProvider(crustChainEndpoint),
351351 typesBundle: typesBundleForPolkadot,
@@ -383,7 +383,7 @@ async function main() {
383383 // II. Place storage order
384384 await placeStorageOrder(rst.cid, rst.size);
385385 // III. [OPTIONAL] Add prepaid
386- // Learn what's prepard for: https://wiki.crust.network /docs/en/DSM#3-file-order-assurance-settlement-and-discount
386+ // Learn what's prepard for: https://wiki.{{currentHostname}} /docs/en/DSM#3-file-order-assurance-settlement-and-discount
387387 const addedAmount = 100; // in pCRU, 1 pCRU = 10^-12 CRU
388388 await addPrepaid(rst.cid, addedAmount);
389389
0 commit comments