1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Merge branch 'master' into eyeballs

This commit is contained in:
Dan Finlay 2016-05-11 14:16:53 -07:00
commit 4e9b829179
7 changed files with 39 additions and 11 deletions

View File

@ -6,6 +6,12 @@
- Replaced identicons with jazzicons - Replaced identicons with jazzicons
- Fixed glitchy transitions - Fixed glitchy transitions
## 1.8.2 2016-05-11
- Fixed bug where send view would not load correctly the first time it was visited per account.
- Migrated all users to new scalable backend.
- Fixed `eth_syncing` method response.
## 1.8.1 2016-05-10 ## 1.8.1 2016-05-10
- Initial usage of scalable blockchain backend. - Initial usage of scalable blockchain backend.

View File

@ -1,7 +1,7 @@
{ {
"name": "__MSG_appName__", "name": "__MSG_appName__",
"short_name": "Metamask", "short_name": "Metamask",
"version": "1.8.1", "version": "1.8.2",
"manifest_version": 2, "manifest_version": 2,
"description": "__MSG_appDescription__", "description": "__MSG_appDescription__",
"icons": { "icons": {

View File

@ -1,10 +1,5 @@
var path = require('path')
var fs = require('fs')
var migration2 = require('../migrations/002')
var migration3 = require('../migrations/003')
module.exports = [ module.exports = [
migration2, require('../migrations/002'),
migration3, require('../migrations/003'),
require('../migrations/004'),
] ]

View File

@ -0,0 +1,22 @@
module.exports = {
version: 4,
migrate: function(data) {
try {
if (data.config.provider.type !== 'rpc') return data
switch (data.config.provider.rpcTarget) {
case 'https://testrpc.metamask.io/':
data.config.provider = {
type: 'testnet'
}
break
case 'https://rpc.metamask.io/':
data.config.provider = {
type: 'mainnet'
}
break
}
} catch (_) {}
return data
}
}

View File

@ -56,7 +56,7 @@
"three.js": "^0.73.2", "three.js": "^0.73.2",
"through2": "^2.0.1", "through2": "^2.0.1",
"web3": "^0.15.1", "web3": "^0.15.1",
"web3-provider-engine": "^7.6.2", "web3-provider-engine": "^7.6.3",
"xtend": "^4.0.1" "xtend": "^4.0.1"
}, },
"devDependencies": { "devDependencies": {

View File

@ -5,6 +5,7 @@ var wallet1 = require(path.join('..', 'lib', 'migrations', '001.json'))
var migration2 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '002')) var migration2 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '002'))
var migration3 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '003')) var migration3 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '003'))
var migration4 = require(path.join('..', '..', 'app', 'scripts', 'migrations', '004'))
describe('wallet1 is migrated successfully', function() { describe('wallet1 is migrated successfully', function() {
@ -23,6 +24,10 @@ describe('wallet1 is migrated successfully', function() {
var secondResult = migration3.migrate(firstResult) var secondResult = migration3.migrate(firstResult)
assert.equal(secondResult.config.provider.rpcTarget, newTestRpc) assert.equal(secondResult.config.provider.rpcTarget, newTestRpc)
var thirdResult = migration4.migrate(secondResult)
assert.equal(secondResult.config.provider.rpcTarget, null)
assert.equal(secondResult.config.provider.type, 'testnet')
done() done()
}) })
}) })

View File

@ -12,7 +12,7 @@ module.exports = connect(mapStateToProps)(SendTransactionScreen)
function mapStateToProps(state) { function mapStateToProps(state) {
var result = { var result = {
address: state.appState.currentView.context, address: state.metamask.selectedAccount,
accounts: state.metamask.accounts, accounts: state.metamask.accounts,
identities: state.metamask.identities, identities: state.metamask.identities,
warning: state.appState.warning, warning: state.appState.warning,