From 75177c5998052315c8a45b6d458321efa7d256f3 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Tue, 13 Dec 2022 13:57:48 -0330 Subject: [PATCH] Make `setProviderType` synchronous (#16879) The network controller method `setProviderType` was marked as `async` despite doing nothing async internally. The `async` has been dropped. This should have zero functional impact. This relates to https://github.com/MetaMask/controllers/issues/971 --- app/scripts/controllers/network/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/controllers/network/network.js b/app/scripts/controllers/network/network.js index 7f7b4a8b0..bad90670c 100644 --- a/app/scripts/controllers/network/network.js +++ b/app/scripts/controllers/network/network.js @@ -286,7 +286,7 @@ export default class NetworkController extends EventEmitter { }); } - async setProviderType(type) { + setProviderType(type) { assert.notStrictEqual( type, NETWORK_TYPES.RPC,