File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,23 +94,21 @@ export function useProposeSafeTransaction({ safeAddress }: ProposeSafeTransactio
9494 options,
9595 onlyCalls : true ,
9696 } )
97-
98- const signedSafeTx = await protocolKit . signTransaction ( safeTx )
99- const safeTxHash = await protocolKit . getTransactionHash ( signedSafeTx )
100- const signature = await protocolKit . signHash ( safeTxHash )
97+ const txHash = await protocolKit . getTransactionHash ( safeTx )
98+ const signature = await protocolKit . signHash ( txHash )
10199
102100 // propose transaction to service
103101 await apiKit . proposeTransaction ( {
104102 safeAddress : checksumSafeAddress ,
105- safeTransactionData : signedSafeTx . data ,
106- safeTxHash,
103+ safeTransactionData : safeTx . data ,
104+ safeTxHash : txHash ,
107105 senderAddress : checksumUserAddress ,
108106 senderSignature : signature . data ,
109107 } )
110108
111109 return {
112- safeTxHash,
113- nonce : signedSafeTx . data . nonce . toString ( ) ,
110+ safeTxHash : txHash ,
111+ nonce : safeTx . data . nonce . toString ( ) ,
114112 }
115113 } catch ( error : unknown ) {
116114 const message = error instanceof Error ? error . message : 'An unknown error occurred.'
You can’t perform that action at this time.
0 commit comments