Skip to content

Commit 2dc145d

Browse files
committed
Patch: Alert on metamask speedup function
1 parent 7982c6e commit 2dc145d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)