mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge branch 'master' into i1234-HardGasLimits-BrowserForm
This commit is contained in:
commit
457611d8f8
@ -7,6 +7,7 @@
|
|||||||
- Added an address book functionality that remembers the last 15 unique addresses sent to.
|
- Added an address book functionality that remembers the last 15 unique addresses sent to.
|
||||||
- Can now change network to custom RPC URL from lock screen.
|
- Can now change network to custom RPC URL from lock screen.
|
||||||
- Removed support for old, lightwallet based vault. Users who have not opened app in over a month will need to recover with their seed phrase. This will allow Firefox support sooner.
|
- Removed support for old, lightwallet based vault. Users who have not opened app in over a month will need to recover with their seed phrase. This will allow Firefox support sooner.
|
||||||
|
- Fixed bug where spinner wouldn't disappear on incorrect password submission on seed word reveal.
|
||||||
- Polish the private key UI.
|
- Polish the private key UI.
|
||||||
- Enforce minimum values for gas price and gas limit.
|
- Enforce minimum values for gas price and gas limit.
|
||||||
- Fix bug where total gas was sometimes not live-updated.
|
- Fix bug where total gas was sometimes not live-updated.
|
||||||
|
@ -19,6 +19,8 @@ class EthereumStore extends ObservableStore {
|
|||||||
super({
|
super({
|
||||||
accounts: {},
|
accounts: {},
|
||||||
transactions: {},
|
transactions: {},
|
||||||
|
currentBlockNumber: '0',
|
||||||
|
currentBlockHash: '',
|
||||||
})
|
})
|
||||||
this._provider = opts.provider
|
this._provider = opts.provider
|
||||||
this._query = new EthQuery(this._provider)
|
this._query = new EthQuery(this._provider)
|
||||||
@ -69,6 +71,8 @@ class EthereumStore extends ObservableStore {
|
|||||||
_updateForBlock (block) {
|
_updateForBlock (block) {
|
||||||
const blockNumber = '0x' + block.number.toString('hex')
|
const blockNumber = '0x' + block.number.toString('hex')
|
||||||
this._currentBlockNumber = blockNumber
|
this._currentBlockNumber = blockNumber
|
||||||
|
this.updateState({ currentBlockNumber: parseInt(blockNumber) })
|
||||||
|
this.updateState({ currentBlockHash: `0x${block.hash.toString('hex')}`})
|
||||||
async.parallel([
|
async.parallel([
|
||||||
this._updateAccounts.bind(this),
|
this._updateAccounts.bind(this),
|
||||||
this._updateTransactions.bind(this, blockNumber),
|
this._updateTransactions.bind(this, blockNumber),
|
||||||
@ -129,4 +133,4 @@ class EthereumStore extends ObservableStore {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = EthereumStore
|
module.exports = EthereumStore
|
||||||
|
@ -269,11 +269,12 @@ function requestRevealSeed (password) {
|
|||||||
dispatch(actions.showLoadingIndication())
|
dispatch(actions.showLoadingIndication())
|
||||||
log.debug(`background.submitPassword`)
|
log.debug(`background.submitPassword`)
|
||||||
background.submitPassword(password, (err) => {
|
background.submitPassword(password, (err) => {
|
||||||
if (err) return dispatch(actions.displayWarning(err.message))
|
if (err) {
|
||||||
|
return dispatch(actions.displayWarning(err.message))
|
||||||
|
}
|
||||||
log.debug(`background.placeSeedWords`)
|
log.debug(`background.placeSeedWords`)
|
||||||
background.placeSeedWords((err) => {
|
background.placeSeedWords((err) => {
|
||||||
if (err) return dispatch(actions.displayWarning(err.message))
|
if (err) return dispatch(actions.displayWarning(err.message))
|
||||||
dispatch(actions.hideLoadingIndication())
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -296,10 +297,10 @@ function importNewAccount (strategy, args) {
|
|||||||
dispatch(actions.showLoadingIndication('This may take a while, be patient.'))
|
dispatch(actions.showLoadingIndication('This may take a while, be patient.'))
|
||||||
log.debug(`background.importAccountWithStrategy`)
|
log.debug(`background.importAccountWithStrategy`)
|
||||||
background.importAccountWithStrategy(strategy, args, (err) => {
|
background.importAccountWithStrategy(strategy, args, (err) => {
|
||||||
dispatch(actions.hideLoadingIndication())
|
|
||||||
if (err) return dispatch(actions.displayWarning(err.message))
|
if (err) return dispatch(actions.displayWarning(err.message))
|
||||||
log.debug(`background.getState`)
|
log.debug(`background.getState`)
|
||||||
background.getState((err, newState) => {
|
background.getState((err, newState) => {
|
||||||
|
dispatch(actions.hideLoadingIndication())
|
||||||
if (err) {
|
if (err) {
|
||||||
return dispatch(actions.displayWarning(err.message))
|
return dispatch(actions.displayWarning(err.message))
|
||||||
}
|
}
|
||||||
|
@ -426,6 +426,7 @@ function reduceApp (state, action) {
|
|||||||
case actions.DISPLAY_WARNING:
|
case actions.DISPLAY_WARNING:
|
||||||
return extend(appState, {
|
return extend(appState, {
|
||||||
warning: action.value,
|
warning: action.value,
|
||||||
|
isLoading: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
case actions.HIDE_WARNING:
|
case actions.HIDE_WARNING:
|
||||||
|
Loading…
Reference in New Issue
Block a user