Skip to content

Commit

Permalink
Address change requests
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Feb 22, 2024
1 parent 00c04b0 commit 70fd672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions packages/ui/src/accounts/model/walletConnect.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Signer } from '@polkadot/api/types'
import { WalletConnectModal } from '@walletconnect/modal'
import { SessionTypes } from '@walletconnect/types'
import { UniversalProvider } from '@walletconnect/universal-provider'
import type { UniversalProvider as Provider } from '@walletconnect/universal-provider/dist/types/UniversalProvider.d.ts'
import Provider from '@walletconnect/universal-provider'
import { BaseDotsamaWallet, MetadataDef, SubscriptionFn, WalletAccount } from 'injectweb3-connect'
import { Observable } from 'rxjs'

Expand Down Expand Up @@ -42,7 +41,7 @@ export class WalletConnect extends BaseDotsamaWallet {
public enable = async (): Promise<void> => {
this._provider =
this._provider ??
(await UniversalProvider.init({
(await Provider.init({
projectId: this._projectId,
relayUrl: 'wss://relay.walletconnect.com',
metadata: {
Expand Down Expand Up @@ -143,7 +142,7 @@ export class WalletConnect extends BaseDotsamaWallet {
}

public getAccounts = async (): Promise<WalletAccount[]> => {
return Promise.resolve(this._accounts ?? [])
return this._accounts ?? []
}

public subscribeAccounts: (callback: SubscriptionFn) => Promise<() => void> = (callback) => {
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/app/components/ExtensionWarning.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useEffect, useState } from 'react'

// import { useMyAccounts } from '@/accounts/hooks/useMyAccounts'
import { SideNotification } from '@/common/components/page/SideNotification'
import { useOnBoarding } from '@/common/hooks/useOnBoarding'
import { useMyMemberships } from '@/memberships/hooks/useMyMemberships'
Expand Down

0 comments on commit 70fd672

Please sign in to comment.