Skip to content

Commit

Permalink
Merge pull request #278 from poanetwork/develop
Browse files Browse the repository at this point in the history
NW release 4.11.4
  • Loading branch information
vbaranov committed Apr 15, 2019
2 parents e5587a6 + a2de74e commit 9ad8f70
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Current Master

## 4.11.4 Mon Apr 15 2019

- [#277](https://github.com/poanetwork/nifty-wallet/pull/277): (Fix) USD price for ETC coin
- [#276](https://github.com/poanetwork/nifty-wallet/pull/276): (Fix) Remove js obfuscation

## 4.11.3 Fri Mar 29 2019

- [#272](https://github.com/poanetwork/nifty-wallet/pull/272): Update Classic RPC endpoint
Expand Down
2 changes: 1 addition & 1 deletion app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_appName__",
"short_name": "__MSG_appName__",
"version": "4.11.3",
"version": "4.11.4",
"manifest_version": 2,
"author": "POA Network",
"description": "__MSG_appDescription__",
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class CurrencyController {
currentCurrency = this.getCurrentCurrency()
currentCoin = this.getCurrentCoin()
let conversionRate, conversionDate
if (currentCoin === 'poa') {
if (currentCoin === 'poa' || currentCoin === 'etc') {
const apiLink = `https://min-api.cryptocompare.com/data/price?fsym=${currentCoin.toUpperCase()}&tsyms=${currentCurrency.toUpperCase()}`
const response = await fetch(apiLink)
const parsedResponse = await response.json()
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function createTasksForBuildJsExtension ({ buildJsFiles, taskPrefix, devMode, bu
bundleTaskOpts = Object.assign({
buildSourceMaps: true,
sourceMapDir: devMode ? './' : '../sourcemaps',
minifyBuild: !devMode,
minifyBuild: false,
buildWithFullPaths: devMode,
watch: devMode,
devMode,
Expand All @@ -318,7 +318,7 @@ function createTasksForBuildJsMascara ({ taskPrefix, devMode, bundleTaskOpts = {
bundleTaskOpts = Object.assign({
buildSourceMaps: true,
sourceMapDir: './',
minifyBuild: !devMode,
minifyBuild: false,
buildWithFullPaths: devMode,
watch: devMode,
devMode,
Expand Down
6 changes: 4 additions & 2 deletions ui/app/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const log = require('loglevel')
const { ENVIRONMENT_TYPE_NOTIFICATION } = require('../../app/scripts/lib/enums')
const { POA,
DAI,
POA_SOKOL } = require('../../app/scripts/controllers/network/enums')
POA_SOKOL,
CLASSIC } = require('../../app/scripts/controllers/network/enums')
const { hasUnconfirmedTransactions } = require('./helpers/confirm-transaction/util')
const WebcamUtils = require('../lib/webcam-utils')

Expand Down Expand Up @@ -2012,7 +2013,8 @@ function setProviderType (type) {

const newCoin = type === POA || type === POA_SOKOL ?
'poa' : type === DAI ?
'dai' : 'eth'
'dai' : type === CLASSIC ?
'etc' : 'eth'
background.setCurrentCoin(newCoin, (err, data) => {
if (err) {
log.error(err.stack)
Expand Down

0 comments on commit 9ad8f70

Please sign in to comment.