Skip to content

Commit

Permalink
fix: type assertion for connection object
Browse files Browse the repository at this point in the history
  • Loading branch information
zoruka committed Aug 7, 2024
1 parent 78da2ac commit d8d8b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/solana/exports/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Web3Modal } from '../src/client.js'
import { SolStoreUtil } from '../src/utils/scaffold/index.js'

import type { Web3ModalOptions } from '../src/client.js'
import type { Provider } from '../src/utils/scaffold/index.js'
import type { Connection, Provider } from '../src/utils/scaffold/index.js'

// -- Setup -------------------------------------------------------------------
let modal: Web3Modal | undefined = undefined
Expand All @@ -36,7 +36,7 @@ export function useWeb3ModalProvider() {
return {
walletProvider: provider as Provider,
walletProviderType: providerType,
connection
connection: connection as Connection
}
}

Expand Down

0 comments on commit d8d8b50

Please sign in to comment.