From ae6ac46e64725816a76bbfc6805a762b8299f992 Mon Sep 17 00:00:00 2001 From: Jimmy Hardwick Date: Thu, 29 Aug 2024 11:37:30 +1000 Subject: [PATCH] [Checkout SDK]feat: Clear InjectedProvidersManager (#2120) --- packages/checkout/sdk/src/sdk.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/checkout/sdk/src/sdk.ts b/packages/checkout/sdk/src/sdk.ts index e1f59c9ec3..68889abb29 100644 --- a/packages/checkout/sdk/src/sdk.ts +++ b/packages/checkout/sdk/src/sdk.ts @@ -293,6 +293,10 @@ export class Checkout { return InjectedProvidersManager.getInstance().subscribe(listener); } + public clearInjectedProviders() { + return InjectedProvidersManager.getInstance().clear(); + } + /** * Checks if a wallet is connected to the specified provider. * @param {CheckConnectionParams} params - The parameters for checking the wallet connection.