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) {