mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge branch 'master' into ModularFiatBalance
This commit is contained in:
commit
2ca58f5bf7
@ -3,6 +3,9 @@
|
|||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
- Add fiat conversion values to more views.
|
- Add fiat conversion values to more views.
|
||||||
|
- On fresh install, open a new tab with the MetaMask Introduction video.
|
||||||
|
- Block negative values from transactions.
|
||||||
|
- Fixed a memory leak.
|
||||||
|
|
||||||
## 2.10.2 2016-09-02
|
## 2.10.2 2016-09-02
|
||||||
|
|
||||||
|
@ -35,6 +35,12 @@ function showUnconfirmedTx (txParams, txData, onTxDoneCb) {
|
|||||||
notification.show()
|
notification.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// On first install, open a window to MetaMask website to how-it-works.
|
||||||
|
|
||||||
|
extension.runtime.onInstalled.addListener(function (object) {
|
||||||
|
extension.tabs.create({url: 'https://metamask.io/#how-it-works'})
|
||||||
|
})
|
||||||
|
|
||||||
//
|
//
|
||||||
// connect to other contexts
|
// connect to other contexts
|
||||||
//
|
//
|
||||||
@ -80,6 +86,7 @@ function setupControllerConnection (stream) {
|
|||||||
stream.pipe(dnode).pipe(stream)
|
stream.pipe(dnode).pipe(stream)
|
||||||
dnode.on('remote', (remote) => {
|
dnode.on('remote', (remote) => {
|
||||||
// push updates to popup
|
// push updates to popup
|
||||||
|
controller.ethStore.removeListener('update', controller.sendUpdate.bind(controller))
|
||||||
controller.ethStore.on('update', controller.sendUpdate.bind(controller))
|
controller.ethStore.on('update', controller.sendUpdate.bind(controller))
|
||||||
controller.listeners.push(remote)
|
controller.listeners.push(remote)
|
||||||
idStore.on('update', controller.sendUpdate.bind(controller))
|
idStore.on('update', controller.sendUpdate.bind(controller))
|
||||||
@ -160,4 +167,3 @@ function getOldStyleData () {
|
|||||||
function setData (data) {
|
function setData (data) {
|
||||||
window.localStorage[STORAGE_KEY] = JSON.stringify(data)
|
window.localStorage[STORAGE_KEY] = JSON.stringify(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ module.exports = class MetamaskController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enforceTxValidations (txParams) {
|
enforceTxValidations (txParams) {
|
||||||
if (txParams.value.indexOf('-') === 0) {
|
if (('value' in txParams) && txParams.value.indexOf('-') === 0) {
|
||||||
const msg = `Invalid transaction value of ${txParams.value} not a positive number.`
|
const msg = `Invalid transaction value of ${txParams.value} not a positive number.`
|
||||||
return new Error(msg)
|
return new Error(msg)
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ function AccountInfoLink () {
|
|||||||
|
|
||||||
AccountInfoLink.prototype.render = function () {
|
AccountInfoLink.prototype.render = function () {
|
||||||
const { selected, network } = this.props
|
const { selected, network } = this.props
|
||||||
const title = 'View account on etherscan'
|
const title = 'View account on Etherscan'
|
||||||
const url = genAccountLink(selected, network)
|
const url = genAccountLink(selected, network)
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
|
@ -106,7 +106,7 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
|
|||||||
style: {
|
style: {
|
||||||
width: '225px',
|
width: '225px',
|
||||||
},
|
},
|
||||||
}, 'In order to access this feature please switch too the Main Network'),
|
}, 'In order to access this feature please switch to the Main Network'),
|
||||||
h('h3.text-transform-uppercase', 'or:'),
|
h('h3.text-transform-uppercase', 'or:'),
|
||||||
this.props.network === '2' ? h('button.text-transform-uppercase', {
|
this.props.network === '2' ? h('button.text-transform-uppercase', {
|
||||||
onClick: () => this.props.dispatch(actions.buyEth()),
|
onClick: () => this.props.dispatch(actions.buyEth()),
|
||||||
|
@ -35,10 +35,9 @@ EthStoreWarning.prototype.render = function () {
|
|||||||
margin: '10px 10px 10px 10px',
|
margin: '10px 10px 10px 10px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
`The MetaMask team would like to
|
`MetaMask is currently in beta; use
|
||||||
remind you that MetaMask is currently in beta - so
|
caution in storing large
|
||||||
don't store large
|
amounts of ether.
|
||||||
amounts of ether in MetaMask.
|
|
||||||
`),
|
`),
|
||||||
|
|
||||||
h('i.fa.fa-exclamation-triangle.fa-4', {
|
h('i.fa.fa-exclamation-triangle.fa-4', {
|
||||||
|
Loading…
Reference in New Issue
Block a user