@@ -83,7 +83,7 @@ async function initiateSwap ({ getters, dispatch }, { order, network, walletId }
8383 }
8484}
8585
86- async function reportInitiation ( { } , { order } ) {
86+ async function reportInitiation ( store , { order } ) {
8787 await updateOrder ( order . agent , order . id , {
8888 fromAddress : order . fromAddress ,
8989 toAddress : order . toAddress ,
@@ -145,14 +145,14 @@ async function claimSwap ({ getters }, { order, network, walletId }) {
145145 const toClient = getters . client ( network , walletId , order . to )
146146
147147 const toClaimHash = await toClient . swap . claimSwap (
148- order . toFundHash ,
149- order . toAddress ,
150- order . toCounterPartyAddress ,
151- order . secret ,
152- order . nodeSwapExpiration ,
153- order . claimFee
154- )
155-
148+ order . toFundHash ,
149+ order . toAddress ,
150+ order . toCounterPartyAddress ,
151+ order . secret ,
152+ order . nodeSwapExpiration ,
153+ order . claimFee
154+ )
155+
156156 return {
157157 toClaimHash,
158158 status : 'WAITING_FOR_CLAIM_CONFIRMATIONS'
@@ -213,7 +213,7 @@ async function refundSwap ({ getters }, { order, network, walletId }) {
213213 }
214214}
215215
216- async function sendTo ( { getters } , { order, network, walletId } ) {
216+ async function sendTo ( { getters, dispatch } , { order, network, walletId } ) {
217217 const toClient = getters . client ( network , walletId , order . to )
218218 const sendToHash = await toClient . chain . sendTransaction ( order . sendTo , order . toAmount )
219219
0 commit comments