diff --git a/modules/sdk-api/src/v1/wallet.ts b/modules/sdk-api/src/v1/wallet.ts index cd45fd90aa..e215bcf1d1 100644 --- a/modules/sdk-api/src/v1/wallet.ts +++ b/modules/sdk-api/src/v1/wallet.ts @@ -899,11 +899,7 @@ Wallet.prototype.signTransaction = function (params, callback) { params = _.extend({}, params); if (params.psbt) { - try { - return callback(null, signPsbtRequest(params)); - } catch (e) { - return callback(e); - } + return Bluebird.try(() => signPsbtRequest(params)).nodeify(callback); } common.validateParams(params, ['transactionHex'], [], callback);