@@ -39,12 +39,12 @@ export const useExecuteContractTx = (chainName: string) => {
3939 fee,
4040 funds,
4141 msg,
42- onTxFailed = ( ) => { } ,
43- onTxSucceed = ( ) => { } ,
42+ onTxFailed = ( ) => { } ,
43+ onTxSucceed = ( ) => { } ,
4444 } : ExecuteTxParams ) => {
4545 await handleTx ( {
4646 txFunction : async ( ) => {
47- const executeContract = createExecuteContract ( signingClient ) ;
47+ const executeContract = createExecuteContract ( signingClient as any ) ;
4848 const res = await executeContract (
4949 address ,
5050 {
@@ -68,8 +68,8 @@ export const useExecuteContractTx = (chainName: string) => {
6868 contractIndex,
6969 fnName,
7070 arg,
71- onTxFailed = ( ) => { } ,
72- onTxSucceed = ( ) => { } ,
71+ onTxFailed = ( ) => { } ,
72+ onTxSucceed = ( ) => { } ,
7373 } : ExecuteJsdTxParams ) => {
7474 const msg = jsd . jsd . MessageComposer . fromPartial . eval ( {
7575 creator : address ,
@@ -84,7 +84,7 @@ export const useExecuteContractTx = (chainName: string) => {
8484 txFunction : async ( ) => {
8585 const signingClient = await getSigningJsdClient ( {
8686 rpcEndpoint : rpcEndpoint ! ,
87- signer : wallet . getOfflineSignerDirect ( chain . chainId ?? '' ) ,
87+ signer : wallet . getOfflineSigner ( chain . chainId ?? '' ) as any ,
8888 } ) ;
8989
9090 return signingClient . signAndBroadcast ( address , [ msg ] , fee ) ;
0 commit comments