Skip to content

Commit

Permalink
refactor: updated naming
Browse files Browse the repository at this point in the history
  • Loading branch information
olia-nistratova committed Oct 16, 2023
1 parent 02b04cd commit 3b91e00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/store/subscribers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b91e00

Please sign in to comment.