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

Update Wyre purchase URL (#9414)

This commit is contained in:
Pedro Pablo Aste Kompen 2020-09-15 17:26:51 -03:00 committed by GitHub
parent 86adca8486
commit e205124db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export default function getBuyEthUrl ({ network, address, service }) {
switch (service) { switch (service) {
case 'wyre': case 'wyre':
return `https://pay.sendwyre.com/?dest=ethereum:${address}&destCurrency=ETH&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card` return `https://pay.sendwyre.com/purchase?dest=ethereum:${address}&destCurrency=ETH&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card`
case 'coinswitch': case 'coinswitch':
return `https://metamask.coinswitch.co/?address=${address}&to=eth` return `https://metamask.coinswitch.co/?address=${address}&to=eth`
case 'metamask-faucet': case 'metamask-faucet':

View File

@ -20,7 +20,7 @@ describe('buy-eth-url', function () {
it('returns wyre url with address for network 1', function () { it('returns wyre url with address for network 1', function () {
const wyreUrl = getBuyEthUrl(mainnet) const wyreUrl = getBuyEthUrl(mainnet)
assert.equal(wyreUrl, 'https://pay.sendwyre.com/?dest=ethereum:0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc&destCurrency=ETH&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card') assert.equal(wyreUrl, 'https://pay.sendwyre.com/purchase?dest=ethereum:0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc&destCurrency=ETH&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card')
}) })