From 0f305a6c11681820ea2b374209c801cde745d5de Mon Sep 17 00:00:00 2001 From: Hunter Cote Date: Fri, 24 Mar 2023 09:37:40 -0400 Subject: [PATCH] fix return type --- packages/@magic-sdk/provider/src/modules/wallet.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/@magic-sdk/provider/src/modules/wallet.ts b/packages/@magic-sdk/provider/src/modules/wallet.ts index f167750dd..1fa78b58b 100644 --- a/packages/@magic-sdk/provider/src/modules/wallet.ts +++ b/packages/@magic-sdk/provider/src/modules/wallet.ts @@ -74,26 +74,26 @@ export class WalletModule extends BaseModule { } /* Prompt Magic's Wallet UI (not available for users logged in with third party wallets) */ - public showUI(): Promise { + public showUI() { const requestPayload = createJsonRpcRequestPayload(MagicPayloadMethod.ShowUI); return this.request(requestPayload); } /* Get user info such as the wallet type they are logged in with */ - public async getInfo(): Promise { + public async getInfo() { const activeWallet = await getItem(this.localForageKey); const requestPayload = createJsonRpcRequestPayload(MagicPayloadMethod.GetInfo, [{ walletType: activeWallet }]); return this.request(requestPayload); } /* Request email address from logged in user */ - public requestUserInfoWithUI(scope?: RequestUserInfoScope): Promise { + public requestUserInfoWithUI(scope?: RequestUserInfoScope) { const requestPayload = createJsonRpcRequestPayload(MagicPayloadMethod.RequestUserInfoWithUI, scope ? [scope] : []); return this.request(requestPayload); } /* Logout user */ - public async disconnect(): Promise { + public async disconnect() { clearKeys(); const activeWallet = await getItem(this.localForageKey); if (activeWallet === Wallets.WalletConnect) {