Skip to content

Commit

Permalink
Fix types please
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Nov 16, 2023
1 parent 36cc222 commit 9f4e143
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stores/useVotePluginsClientStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { HeliumVsrClient } from 'HeliumVotePlugin/sdk/client'
import { Registrar as HeliumVsrRegistrar } from 'HeliumVotePlugin/sdk/types'
import * as heliumVsrSdk from '@helium/voter-stake-registry-sdk'
import { NftVoterClient } from '@utils/uiTypes/NftVoterClient'
import { PythClient } from '@pythnetwork/staking'
import { StakeConnection as PythClient } from '@pythnetwork/staking'

interface UseVotePluginsClientStore extends State {
state: {
Expand All @@ -28,7 +28,7 @@ interface UseVotePluginsClientStore extends State {
heliumVsrClient: HeliumVsrClient | undefined
nftClient: NftVoterClient | undefined
gatewayClient: GatewayClient | undefined
pythClient: typeof PythClient | undefined
pythClient: PythClient | undefined
nftMintRegistrar: any
gatewayRegistrar: any
currentRealmVotingClient: VotingClient
Expand Down
4 changes: 2 additions & 2 deletions utils/uiTypes/VotePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import { NftVoter } from 'idls/nft_voter'
import { NftVoterV2 } from 'idls/nft_voter_v2'
import { Program } from '@project-serum/anchor'
import { fetchTokenOwnerRecordByPubkey } from '@hooks/queries/tokenOwnerRecord'
import { PythClient } from '@pythnetwork/staking'
import { StakeConnection as PythClient } from '@pythnetwork/staking'

export type UpdateVoterWeightRecordTypes =
| 'castVote'
Expand Down Expand Up @@ -164,7 +164,7 @@ export class VotingClient {
voterWeightTarget?: PublicKey
): Promise<ProgramAddresses | undefined> => {
if (this.noClient) return

const realm = this.realm!
const torAccount = await fetchTokenOwnerRecordByPubkey(
this.client!.program.provider.connection,
Expand Down

0 comments on commit 9f4e143

Please sign in to comment.