mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #2241 from MetaMask/Version-3.10.8-FixCurrency
Version 3.10.8 - Fix Currency Conversion
This commit is contained in:
commit
37979fca68
@ -2,6 +2,10 @@
|
||||
|
||||
## Current Master
|
||||
|
||||
## 3.10.8 2017-9-28
|
||||
|
||||
- Fixed usage of new currency fetching API.
|
||||
|
||||
## 3.10.7 2017-9-28
|
||||
|
||||
- Fixed bug where sometimes the current account was not correctly set and exposed to web apps.
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "MetaMask",
|
||||
"short_name": "Metamask",
|
||||
"version": "3.10.7",
|
||||
"version": "3.10.8",
|
||||
"manifest_version": 2,
|
||||
"author": "https://metamask.io",
|
||||
"description": "Ethereum Browser Extension",
|
||||
|
@ -45,7 +45,7 @@ class CurrencyController {
|
||||
|
||||
updateConversionRate () {
|
||||
const currentCurrency = this.getCurrentCurrency()
|
||||
return fetch(`https://api.infura.io/v1/ticker/eth${currentCurrency}`)
|
||||
return fetch(`https://api.infura.io/v1/ticker/eth${currentCurrency.toLowerCase()}`)
|
||||
.then(response => response.json())
|
||||
.then((parsedResponse) => {
|
||||
this.setConversionRate(Number(parsedResponse.bid))
|
||||
|
Loading…
Reference in New Issue
Block a user