Skip to content

Commit

Permalink
chore: inj client creation
Browse files Browse the repository at this point in the history
todo: fix injective ledger
  • Loading branch information
nick134-bit committed Aug 23, 2024
1 parent 5cbc997 commit 81091a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/useClients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useQueries } from 'react-query'
import { GeneratedType, Registry } from '@cosmjs/proto-signing';
import { AminoTypes } from '@cosmjs/stargate';
import { useChain } from '@cosmos-kit/react-lite'
import { InjectiveStargate } from '@injectivelabs/sdk-ts'
import { InjectiveSigningStargateClient } from '@injectivelabs/sdk-ts/dist/cjs/core/stargate'
import {
cosmosAminoConverters,
cosmosProtoRegistry,
Expand Down Expand Up @@ -53,10 +53,10 @@ export const useClients = (walletChainName: string) => {
...cosmosAminoConverters,
...cosmwasmAminoConverters,
};
const registry = new Registry(protoRegistry);
const registry: any = new Registry(protoRegistry);
const aminoTypes = new AminoTypes(aminoConverters);
const endpoint = await getRpcEndpoint()
const client = await InjectiveStargate.InjectiveSigningStargateClient.connectWithSigner(
const client = await InjectiveSigningStargateClient.connectWithSigner(
endpoint,
offlineSigner, {
registry,
Expand Down

0 comments on commit 81091a7

Please sign in to comment.