@rango-dev/wallets-core 0.42.1-next.4 → 0.42.1-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,9 +111,7 @@ export function changeAccountSubscriber(
111
111
  evmInstance.removeListener('accountsChanged', eventCallback);
112
112
  }
113
113
 
114
- if (err instanceof Error) {
115
- throw err;
116
- }
114
+ return err;
117
115
  },
118
116
  ];
119
117
  }
@@ -51,9 +51,7 @@ export function changeAccountSubscriber(
51
51
  };
52
52
  solanaInstance.on('accountChanged', eventCallback);
53
53
 
54
- if (err instanceof Error) {
55
- throw err;
56
- }
54
+ return err;
57
55
  },
58
56
  (_context, err) => {
59
57
  const solanaInstance = instance();
@@ -62,9 +60,7 @@ export function changeAccountSubscriber(
62
60
  solanaInstance.off('accountChanged', eventCallback);
63
61
  }
64
62
 
65
- if (err instanceof Error) {
66
- throw err;
67
- }
63
+ return err;
68
64
  },
69
65
  ];
70
66
  }
@@ -56,9 +56,7 @@ export function changeAccountSubscriber(
56
56
  unsubscriber();
57
57
  }
58
58
 
59
- if (err instanceof Error) {
60
- throw err;
61
- }
59
+ return err;
62
60
  },
63
61
  ];
64
62
  }