Skip to content

Commit 66fed12

Browse files
committed
chore: updated hathor-rpc-lib to use published version
1 parent a1545d0 commit 66fed12

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/sagas/reown.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ function* init() {
168168
*/
169169
export function* listenForNetworkChange() {
170170
let previousGenesisHash = yield select((state) => get(state.serverInfo, 'genesisHash'));
171-
171+
172172
while (true) {
173173
// Wait for the server info to be updated with the new network data
174174
yield take(types.SERVER_INFO_UPDATED);
175-
175+
176176
const currentGenesisHash = yield select((state) => get(state.serverInfo, 'genesisHash'));
177-
177+
178178
if (previousGenesisHash !== currentGenesisHash) {
179179
log.debug('Genesis hash changed, clearing reown sessions.');
180180
yield call(clearSessions);
@@ -214,12 +214,12 @@ export function* refreshActiveSessions(extend = false) {
214214
}
215215

216216
const activeSessions = yield call(() => walletKit.getActiveSessions());
217-
217+
218218
yield put(setReownSessions(activeSessions || {}));
219219

220220
if (extend) {
221221
const sessionKeys = Object.keys(activeSessions || {});
222-
222+
223223
for (const key of sessionKeys) {
224224
log.debug('Extending session ');
225225
log.debug(activeSessions[key].topic);
@@ -808,7 +808,7 @@ export function* onWalletReset() {
808808
*/
809809
export function* onSessionProposal(action) {
810810
const { id, params } = action.payload;
811-
811+
812812
// Ensure connection state is set to CONNECTING at the beginning of the saga
813813
yield put(setWCConnectionState(REOWN_CONNECTION_STATE.CONNECTING));
814814

@@ -830,13 +830,13 @@ export function* onSessionProposal(action) {
830830
log.error('Unsupported methods requested:', unsupportedMethods);
831831
// Set connection state to FAILED
832832
yield put(setWCConnectionState(REOWN_CONNECTION_STATE.FAILED));
833-
833+
834834
// Show error modal to user
835835
yield put(showGlobalModal(MODAL_TYPES.ERROR_MODAL, {
836836
title: 'Connection Error',
837837
message: `The dApp is requesting methods that are not supported: ${unsupportedMethods.join(', ')}`,
838838
}));
839-
839+
840840
// Reject the session
841841
const { walletKit } = getGlobalReown();
842842
if (walletKit) {
@@ -922,16 +922,16 @@ export function* onSessionProposal(action) {
922922
} catch (error) {
923923
log.error('Error handling session proposal:', error);
924924
yield put(onExceptionCaptured(error));
925-
925+
926926
// Set connection state to FAILED
927927
yield put(setWCConnectionState(REOWN_CONNECTION_STATE.FAILED));
928-
928+
929929
// Show error modal to user
930930
yield put(showGlobalModal(MODAL_TYPES.ERROR_MODAL, {
931931
title: 'Connection Error',
932932
message: `Failed to connect to dApp: ${error.message}`,
933933
}));
934-
934+
935935
// Try to reject the session if possible
936936
try {
937937
const { walletKit } = getGlobalReown();
@@ -981,7 +981,7 @@ export function* onUriInputted(action) {
981981
log.debug('Error pairing: ', error);
982982
// Connection failed
983983
yield put(setWCConnectionState(REOWN_CONNECTION_STATE.FAILED));
984-
984+
985985
// Show error modal to user
986986
yield put(showGlobalModal(MODAL_TYPES.ERROR_MODAL, {
987987
title: 'Connection Error',

0 commit comments

Comments
 (0)