Skip to content

Commit 36465f4

Browse files
authored
Merge pull request #141 from liquality/dev
Patch: Alert on metamask speedup function
2 parents 2495b10 + 0b80b8a commit 36465f4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "liquality-atomic-swap",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"private": true,
55
"dependencies": {
66
"@liquality/bitcoin-bitcoinjs-lib-swap-provider": "^0.2.10",

src/actions/swap.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global alert */
2+
13
import { replace } from 'connected-react-router'
24
import watch from 'redux-watch'
35
import { store } from '../store'
@@ -151,6 +153,9 @@ async function lockFunds (dispatch, getState) {
151153
console.log('Initiating Swap', initiateSwapParams)
152154
}
153155
const txHash = await client.swap.initiateSwap(...initiateSwapParams)
156+
if (wallets.a.type === 'metamask') { // TODO: fix properly
157+
alert('Please do not use the "Speed up" function to bump the priority of the transaction as this is not yet supported.')
158+
}
154159
dispatch(transactionActions.setTransaction('a', 'fund', { hash: txHash, block }))
155160
}
156161

0 commit comments

Comments
 (0)