1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Update Wyre buy ETH URL (#7482)

This commit is contained in:
Tyson Malchow 2019-11-22 09:13:23 -06:00 committed by Whymarrh Whitby
parent bf57dd5ad9
commit 015ba83c6e
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ function getBuyEthUrl ({ network, amount, address, service }) {
switch (service) {
case 'wyre':
return `https://dash.sendwyre.com/sign-up`
return `https://pay.sendwyre.com/?dest=ethereum:${address}&destCurrency=ETH&accountId=AC-7AG3W4XH4N2`
case 'coinswitch':
return `https://metamask.coinswitch.co/?address=${address}&to=eth`
case 'coinbase':

View File

@ -17,10 +17,10 @@ describe('buy-eth-url', function () {
network: '42',
}
it('returns coinbase url with amount and address for network 1', function () {
it('returns wyre url with address for network 1', function () {
const wyreUrl = getBuyEthUrl(mainnet)
assert.equal(wyreUrl, 'https://dash.sendwyre.com/sign-up')
assert.equal(wyreUrl, 'https://pay.sendwyre.com/?dest=ethereum:0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc&destCurrency=ETH&accountId=AC-7AG3W4XH4N2')
})