@metamask-previews/network-controller 25.0.0-preview-f86a6bc4 → 25.0.0-preview-8315c2ec
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.
|
@@ -1236,6 +1236,8 @@ async function _NetworkController_lookupSelectedNetwork() {
|
|
|
1236
1236
|
return new Promise((resolve, reject) => {
|
|
1237
1237
|
ethQuery.sendAsync({ method: 'eth_getBlockByNumber', params: ['latest', false] }, (error, block) => {
|
|
1238
1238
|
if (error) {
|
|
1239
|
+
// This error comes from JsonRpcEngine, we don't control it.
|
|
1240
|
+
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
|
|
1239
1241
|
reject(error);
|
|
1240
1242
|
}
|
|
1241
1243
|
else {
|