|
@@ -49,7 +49,7 @@ import { WorkerId, Worker } from "@joystream/types/working-group";
|
|
import { ProposalOf, ProposalDetailsOf } from "@joystream/types/augment/types";
|
|
import { ProposalOf, ProposalDetailsOf } from "@joystream/types/augment/types";
|
|
import { WorkerOf } from "@joystream/types/augment-codec/all";
|
|
import { WorkerOf } from "@joystream/types/augment-codec/all";
|
|
|
|
|
|
-export const connectApi = async (url: string): Promise<ApiPromise> => {
|
|
|
|
|
|
+export const connectApi = async (url: string = "ws://localhost:9944"): Promise<ApiPromise> => {
|
|
const provider = new WsProvider(url);
|
|
const provider = new WsProvider(url);
|
|
return await ApiPromise.create({ provider, types });
|
|
return await ApiPromise.create({ provider, types });
|
|
};
|
|
};
|