Skip to content

Commit ceda39a

Browse files
committed
fix injective client
1 parent 1fdf7ca commit ceda39a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/injective-vue/src/composables/common/useInjectiveClient.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { InjSigningClient } from '@interchainjs/injective/signing-client';
1+
import { defaultSignerOptions } from '@interchainjs/injective/defaults';
2+
import { SigningClient } from '@interchainjs/cosmos/signing-client';
23
import { Ref, computed, ref, watch } from 'vue'
34
import { ExtensionWallet } from '@interchain-kit/core'
45
import { useChain, useWalletManager } from '@interchain-kit/vue'
@@ -21,7 +22,7 @@ export const useInjectiveClient = (chainName: Ref<string>) => {
2122
return
2223
}
2324
signer.signMode = 'direct'
24-
let res = await InjSigningClient.connectWithSigner(rpcEndpoint, signer)
25+
let res = await SigningClient.connectWithSigner(rpcEndpoint, signer, defaultSignerOptions.Cosmos)
2526

2627
injectiveClient.value = res
2728
injectiveClient.value?.addEncoders(toEncoders(MsgSend));

0 commit comments

Comments
 (0)