File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
examples/vote-proposal/hooks Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useChain } from '@interchain-kit/react';
33import { assetLists } from '@chain-registry/v2'
44import { DeliverTxResponse , StdFee } from '@interchainjs/cosmos-types/types'
55import { isDeliverTxSuccess } from '@interchainjs/cosmos/utils/asserts'
6- import { toEncoders } from '@interchainjs/cosmos/utils'
6+ import { toEncoders , toConverters } from '@interchainjs/cosmos/utils'
77import { MsgVote } from 'interchainjs/cosmos/gov/v1beta1/tx'
88
99export 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
You can’t perform that action at this time.
0 commit comments