mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
buy-eth-url - fix variable name
This commit is contained in:
parent
38b85adbe0
commit
2c3fc18573
@ -32,7 +32,7 @@ function getBuyEthUrl({ network, amount, address, service }) {
|
|||||||
throw new Error(`Unknown cryptocurrency exchange or faucet: "${service}"`)
|
throw new Error(`Unknown cryptocurrency exchange or faucet: "${service}"`)
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultServiceForNetwork (networkId) {
|
function getDefaultServiceForNetwork (network) {
|
||||||
switch (network) {
|
switch (network) {
|
||||||
case '1':
|
case '1':
|
||||||
return 'wyre'
|
return 'wyre'
|
||||||
@ -43,5 +43,5 @@ function getDefaultServiceForNetwork (networkId) {
|
|||||||
case '42':
|
case '42':
|
||||||
return 'kovan-faucet'
|
return 'kovan-faucet'
|
||||||
}
|
}
|
||||||
throw new Error(`No default cryptocurrency exchange or faucet for networkId: "${networkId}"`)
|
throw new Error(`No default cryptocurrency exchange or faucet for networkId: "${network}"`)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user