|
@@ -1,11 +1,7 @@
|
|
|
-// TODO allow alternative backends
|
|
|
-
|
|
|
+ import {wsLocation} from "../config.json"
|
|
|
import { ApiPromise, WsProvider } from '@polkadot/api'
|
|
|
import { types } from '@joystream/types'
|
|
|
|
|
|
-const wsLocation =
|
|
|
- 'ws://localhost:9944'
|
|
|
- // 'wss://rome-rpc-endpoint.joystream.org:9944'
|
|
|
|
|
|
const connectUpstream = async (): Promise<ApiPromise> => {
|
|
|
try {
|