mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Combine two identical then blocks
This commit is contained in:
parent
cf6817092b
commit
7659f5894a
@ -194,15 +194,13 @@ module.exports = class MetamaskController {
|
||||
})
|
||||
.then((rawTx) => {
|
||||
cb(null, rawTx)
|
||||
this.sendUpdate()
|
||||
this.txManager.emit(`${txParams.metamaskId}:signingComplete`)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err)
|
||||
cb(err)
|
||||
})
|
||||
.then(() => {
|
||||
this.sendUpdate()
|
||||
this.txManager.emit(`${txParams.metamaskId}:signingComplete`)
|
||||
})
|
||||
},
|
||||
|
||||
// msg signing
|
||||
|
Loading…
Reference in New Issue
Block a user