mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Version 3.10.8 - Fix Currency Conversion
In our conversion to the new Infura API, somehow we were sending upper-cased conversions to their lower-case sensitive API. Fixes the first part of #2240
This commit is contained in:
parent
7bdf73b1dd
commit
d5b0d8af4f
@ -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