Skip to content

Commit

Permalink
fix injective client
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetazzz committed Jan 27, 2025
1 parent 1fdf7ca commit ceda39a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { InjSigningClient } from '@interchainjs/injective/signing-client';
import { defaultSignerOptions } from '@interchainjs/injective/defaults';
import { SigningClient } from '@interchainjs/cosmos/signing-client';
import { Ref, computed, ref, watch } from 'vue'
import { ExtensionWallet } from '@interchain-kit/core'
import { useChain, useWalletManager } from '@interchain-kit/vue'
Expand All @@ -21,7 +22,7 @@ export const useInjectiveClient = (chainName: Ref<string>) => {
return
}
signer.signMode = 'direct'
let res = await InjSigningClient.connectWithSigner(rpcEndpoint, signer)
let res = await SigningClient.connectWithSigner(rpcEndpoint, signer, defaultSignerOptions.Cosmos)

injectiveClient.value = res
injectiveClient.value?.addEncoders(toEncoders(MsgSend));
Expand Down

0 comments on commit ceda39a

Please sign in to comment.