fix: handle failed to parse psbt
This commit is contained in:
parent
ae479ee0d0
commit
73265a9951
|
@ -338,6 +338,17 @@ async function serialSigner(path) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSendPsbtResponse: function (res = '') {
|
handleSendPsbtResponse: function (res = '') {
|
||||||
|
try {
|
||||||
|
const psbtOK = res.trim() === '1'
|
||||||
|
if (!psbtOK) {
|
||||||
|
this.$q.notify({
|
||||||
|
type: 'warning',
|
||||||
|
message: 'Failed to send PSBT!',
|
||||||
|
caption: `${res}`,
|
||||||
|
timeout: 10000
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.hww.confirm.outputIndex = 0
|
this.hww.confirm.outputIndex = 0
|
||||||
this.hww.showConfirmationDialog = true
|
this.hww.showConfirmationDialog = true
|
||||||
this.hww.confirm = {
|
this.hww.confirm = {
|
||||||
|
@ -345,7 +356,16 @@ async function serialSigner(path) {
|
||||||
showFee: false
|
showFee: false
|
||||||
}
|
}
|
||||||
this.hww.sendingPsbt = false
|
this.hww.sendingPsbt = false
|
||||||
|
} catch (error) {
|
||||||
|
this.$q.notify({
|
||||||
|
type: 'warning',
|
||||||
|
message: 'Failed to send PSBT!',
|
||||||
|
caption: `${error}`,
|
||||||
|
timeout: 10000
|
||||||
|
})
|
||||||
|
} finally {
|
||||||
this.psbtSentResolve()
|
this.psbtSentResolve()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
hwwSignPsbt: async function () {
|
hwwSignPsbt: async function () {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user