@@ -39,12 +39,12 @@ export const useExecuteContractTx = (chainName: string) => {
39
39
fee,
40
40
funds,
41
41
msg,
42
- onTxFailed = ( ) => { } ,
43
- onTxSucceed = ( ) => { } ,
42
+ onTxFailed = ( ) => { } ,
43
+ onTxSucceed = ( ) => { } ,
44
44
} : ExecuteTxParams ) => {
45
45
await handleTx ( {
46
46
txFunction : async ( ) => {
47
- const executeContract = createExecuteContract ( signingClient ) ;
47
+ const executeContract = createExecuteContract ( signingClient as any ) ;
48
48
const res = await executeContract (
49
49
address ,
50
50
{
@@ -68,8 +68,8 @@ export const useExecuteContractTx = (chainName: string) => {
68
68
contractIndex,
69
69
fnName,
70
70
arg,
71
- onTxFailed = ( ) => { } ,
72
- onTxSucceed = ( ) => { } ,
71
+ onTxFailed = ( ) => { } ,
72
+ onTxSucceed = ( ) => { } ,
73
73
} : ExecuteJsdTxParams ) => {
74
74
const msg = jsd . jsd . MessageComposer . fromPartial . eval ( {
75
75
creator : address ,
@@ -84,7 +84,7 @@ export const useExecuteContractTx = (chainName: string) => {
84
84
txFunction : async ( ) => {
85
85
const signingClient = await getSigningJsdClient ( {
86
86
rpcEndpoint : rpcEndpoint ! ,
87
- signer : wallet . getOfflineSignerDirect ( chain . chainId ?? '' ) ,
87
+ signer : wallet . getOfflineSigner ( chain . chainId ?? '' ) as any ,
88
88
} ) ;
89
89
90
90
return signingClient . signAndBroadcast ( address , [ msg ] , fee ) ;
0 commit comments