From 3b91e00f8d25f9cc854f8bd8019987d7b6789584 Mon Sep 17 00:00:00 2001 From: Olia Date: Mon, 16 Oct 2023 10:48:51 +0300 Subject: [PATCH] refactor: updated naming --- packages/core/src/index.ts | 4 ++-- packages/core/src/store/subscribers.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 8053ff3d..7c65bf55 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -16,7 +16,7 @@ import { getAccountsList, getNetwork, getNetworkUrl } from './store/getters'; import { subscribeDidsList, subscribeSelectedNetwork, - subscribeCustomRpc, + subscribeCustomNetworkUrl, } from './store/subscribers'; import { populatedDelay } from './constants'; import store from './store'; @@ -358,7 +358,7 @@ function subscribePolymesh(): () => void { !!unsubCallbacks.customNetworkUrl && unsubCallbacks.customNetworkUrl(); - unsubCallbacks.customNetworkUrl = subscribeCustomRpc((customNetworkUrl: string) => { + unsubCallbacks.customNetworkUrl = subscribeCustomNetworkUrl((customNetworkUrl: string) => { if (customNetworkUrl) { console.log('Poly: Custom rpc url', customNetworkUrl); store.dispatch(statusActions.init()); diff --git a/packages/core/src/store/subscribers.ts b/packages/core/src/store/subscribers.ts index cc6b2e22..197173f4 100644 --- a/packages/core/src/store/subscribers.ts +++ b/packages/core/src/store/subscribers.ts @@ -34,7 +34,7 @@ export function subscribeSelectedNetwork( return reduxSubscribe(selectedNetwork, cb); } -export function subscribeCustomRpc( +export function subscribeCustomNetworkUrl( cb: (customNetworkUrl: string) => void ): Unsubscribe { return reduxSubscribe(customNetworkUrl, cb);