mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
commit
e1dc8330db
@ -1640,12 +1640,12 @@ export function closeCurrentNotificationWindow () {
|
|||||||
!hasUnconfirmedTransactions(getState())) {
|
!hasUnconfirmedTransactions(getState())) {
|
||||||
global.platform.closeCurrentWindow()
|
global.platform.closeCurrentWindow()
|
||||||
|
|
||||||
dispatch(closeNotifacationWindow())
|
dispatch(closeNotificationWindow())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function closeNotifacationWindow () {
|
export function closeNotificationWindow () {
|
||||||
return {
|
return {
|
||||||
type: actionConstants.CLOSE_NOTIFICATION_WINDOW,
|
type: actionConstants.CLOSE_NOTIFICATION_WINDOW,
|
||||||
}
|
}
|
||||||
@ -1734,7 +1734,7 @@ export function exportAccount (password, address) {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
background.submitPassword(password, function (err) {
|
background.submitPassword(password, function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
log.error('Error in submiting password.')
|
log.error('Error in submitting password.')
|
||||||
dispatch(hideLoadingIndication())
|
dispatch(hideLoadingIndication())
|
||||||
dispatch(displayWarning('Incorrect Password.'))
|
dispatch(displayWarning('Incorrect Password.'))
|
||||||
return reject(err)
|
return reject(err)
|
||||||
@ -2230,13 +2230,13 @@ export function setConnectedStatusPopoverHasBeenShown () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadingMethoDataStarted () {
|
export function loadingMethodDataStarted () {
|
||||||
return {
|
return {
|
||||||
type: actionConstants.LOADING_METHOD_DATA_STARTED,
|
type: actionConstants.LOADING_METHOD_DATA_STARTED,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadingMethoDataFinished () {
|
export function loadingMethodDataFinished () {
|
||||||
return {
|
return {
|
||||||
type: actionConstants.LOADING_METHOD_DATA_FINISHED,
|
type: actionConstants.LOADING_METHOD_DATA_FINISHED,
|
||||||
}
|
}
|
||||||
@ -2251,12 +2251,12 @@ export function getContractMethodData (data = '') {
|
|||||||
return Promise.resolve(knownMethodData[fourBytePrefix])
|
return Promise.resolve(knownMethodData[fourBytePrefix])
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(loadingMethoDataStarted())
|
dispatch(loadingMethodDataStarted())
|
||||||
log.debug(`loadingMethodData`)
|
log.debug(`loadingMethodData`)
|
||||||
|
|
||||||
return getMethodDataAsync(fourBytePrefix)
|
return getMethodDataAsync(fourBytePrefix)
|
||||||
.then(({ name, params }) => {
|
.then(({ name, params }) => {
|
||||||
dispatch(loadingMethoDataFinished())
|
dispatch(loadingMethodDataFinished())
|
||||||
|
|
||||||
background.addKnownMethodData(fourBytePrefix, { name, params })
|
background.addKnownMethodData(fourBytePrefix, { name, params })
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user