Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
monokh committed Aug 10, 2020
1 parent 9e61970 commit 4b88c3d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/store/actions/performNextAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function initiateSwap ({ getters, dispatch }, { order, network, walletId }
}
}

async function reportInitiation ({}, { order }) {
async function reportInitiation (store, { order }) {
await updateOrder(order.agent, order.id, {
fromAddress: order.fromAddress,
toAddress: order.toAddress,
Expand Down Expand Up @@ -145,14 +145,14 @@ async function claimSwap ({ getters }, { order, network, walletId }) {
const toClient = getters.client(network, walletId, order.to)

const toClaimHash = await toClient.swap.claimSwap(
order.toFundHash,
order.toAddress,
order.toCounterPartyAddress,
order.secret,
order.nodeSwapExpiration,
order.claimFee
)
order.toFundHash,
order.toAddress,
order.toCounterPartyAddress,
order.secret,
order.nodeSwapExpiration,
order.claimFee
)

return {
toClaimHash,
status: 'WAITING_FOR_CLAIM_CONFIRMATIONS'
Expand Down Expand Up @@ -213,7 +213,7 @@ async function refundSwap ({ getters }, { order, network, walletId }) {
}
}

async function sendTo ({ getters }, { order, network, walletId }) {
async function sendTo ({ getters, dispatch }, { order, network, walletId }) {
const toClient = getters.client(network, walletId, order.to)
const sendToHash = await toClient.chain.sendTransaction(order.sendTo, order.toAmount)

Expand Down

0 comments on commit 4b88c3d

Please sign in to comment.