Skip to content

Commit

Permalink
Merge pull request #141 from liquality/dev
Browse files Browse the repository at this point in the history
Patch: Alert on metamask speedup function
  • Loading branch information
monokh authored Jun 26, 2019
2 parents 2495b10 + 0b80b8a commit 36465f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liquality-atomic-swap",
"version": "0.1.6",
"version": "0.1.7",
"private": true,
"dependencies": {
"@liquality/bitcoin-bitcoinjs-lib-swap-provider": "^0.2.10",
Expand Down
5 changes: 5 additions & 0 deletions src/actions/swap.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global alert */

import { replace } from 'connected-react-router'
import watch from 'redux-watch'
import { store } from '../store'
Expand Down Expand Up @@ -151,6 +153,9 @@ async function lockFunds (dispatch, getState) {
console.log('Initiating Swap', initiateSwapParams)
}
const txHash = await client.swap.initiateSwap(...initiateSwapParams)
if (wallets.a.type === 'metamask') { // TODO: fix properly
alert('Please do not use the "Speed up" function to bump the priority of the transaction as this is not yet supported.')
}
dispatch(transactionActions.setTransaction('a', 'fund', { hash: txHash, block }))
}

Expand Down

0 comments on commit 36465f4

Please sign in to comment.