crosslightning-sdk-base
Advanced tools
Comparing version 9.2.0-beta22 to 9.2.0-beta23
@@ -46,2 +46,4 @@ "use strict"; | ||
_setPaymentResult(result, check = false) { | ||
if (result == null) | ||
return Promise.resolve(false); | ||
if (result.secret == null) | ||
@@ -48,0 +50,0 @@ throw new IntermediaryError_1.IntermediaryError("No payment secret returned!"); |
@@ -43,2 +43,4 @@ "use strict"; | ||
return __awaiter(this, arguments, void 0, function* (result, check = false) { | ||
if (result == null) | ||
return false; | ||
if (result.txId == null) | ||
@@ -45,0 +47,0 @@ throw new IntermediaryError_1.IntermediaryError("No btc txId returned!"); |
{ | ||
"name": "crosslightning-sdk-base", | ||
"version": "9.2.0-beta22", | ||
"version": "9.2.0-beta23", | ||
"description": "CrossLightning SDK chain-agnostic base", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -66,2 +66,3 @@ import {decode as bolt11Decode} from "bolt11"; | ||
_setPaymentResult(result: { secret?: string; txId?: string }, check: boolean = false): Promise<boolean> { | ||
if(result==null) return Promise.resolve(false); | ||
if(result.secret==null) throw new IntermediaryError("No payment secret returned!"); | ||
@@ -68,0 +69,0 @@ if(check) { |
@@ -57,2 +57,3 @@ import {ToBTCWrapper} from "./ToBTCWrapper"; | ||
async _setPaymentResult(result: { secret?: string; txId?: string }, check: boolean = false): Promise<boolean> { | ||
if(result==null) return false; | ||
if(result.txId==null) throw new IntermediaryError("No btc txId returned!"); | ||
@@ -59,0 +60,0 @@ if(check) { |
889330
20395