Skip to content

Commit 318a954

Browse files
author
Eason Smith
committed
typeurl issue fixed
1 parent c4cde71 commit 318a954

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/vote-proposal/hooks/useTx.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useChain } from '@interchain-kit/react';
33
import { assetLists } from '@chain-registry/v2'
44
import { DeliverTxResponse, StdFee } from '@interchainjs/cosmos-types/types'
55
import { isDeliverTxSuccess } from '@interchainjs/cosmos/utils/asserts'
6-
import { toEncoders } from '@interchainjs/cosmos/utils'
6+
import { toEncoders, toConverters } from '@interchainjs/cosmos/utils'
77
import { MsgVote } from 'interchainjs/cosmos/gov/v1beta1/tx'
88

99
export type Msg = {
@@ -75,6 +75,7 @@ export function useTx(chainName: string) {
7575
}
7676
const client = await getSigningClient();
7777
client.addEncoders(toEncoders(MsgVote))
78+
client.addConverters(toConverters(MsgVote))
7879
console.log('msgs', msgs)
7980
const signed = await client.sign(address, msgs, fee, '');
8081

0 commit comments

Comments
 (0)