mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
Restored signTx action
This commit is contained in:
parent
356da540d1
commit
c30a67b2de
@ -61,6 +61,7 @@ var actions = {
|
||||
signMsg: signMsg,
|
||||
cancelMsg: cancelMsg,
|
||||
sendTx: sendTx,
|
||||
signTx: signTx,
|
||||
cancelTx: cancelTx,
|
||||
completedTx: completedTx,
|
||||
txError: txError,
|
||||
@ -165,6 +166,20 @@ function signMsg(msgData) {
|
||||
}
|
||||
}
|
||||
|
||||
function signTx(txData) {
|
||||
return (dispatch) => {
|
||||
dispatch(this.showLoadingIndication())
|
||||
|
||||
web3.eth.sendTransaction(txData, (err, data) => {
|
||||
dispatch(this.hideLoadingIndication())
|
||||
|
||||
if (err) return dispatch(this.displayWarning(err.message))
|
||||
dispatch(this.hideWarning())
|
||||
dispatch(this.goHome())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function sendTx(txData) {
|
||||
return (dispatch) => {
|
||||
_accountManager.approveTransaction(txData.id, (err) => {
|
||||
|
Loading…
Reference in New Issue
Block a user