Fix: throws errors on pazuz-wallet newAddress

This commit is contained in:
csrapr 2021-05-31 22:54:30 +01:00 committed by Josh Harvey
parent 32321ae66b
commit 72dbeccb4b

View file

@ -64,6 +64,7 @@ function newAddress (account, info, tx, settings, operatorId) {
operatorId operatorId
})) }))
.then(({ data }) => { .then(({ data }) => {
if(data.error) throw new Error(JSON.stringify(data.error))
return data.newAddress return data.newAddress
}) })
} }