@atomiqlabs/lp-lib 11.0.1 → 11.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,7 +84,7 @@ class ToBtcAbs extends ToBtcBaseSwapHandler_1.ToBtcBaseSwapHandler {
84
84
  return __awaiter(this, void 0, void 0, function* () {
85
85
  const { swapContract, signer } = this.getChain(swap.chainIdentifier);
86
86
  if (swap.state === ToBtcSwapAbs_1.ToBtcSwapState.SAVED) {
87
- const isSignatureExpired = swapContract.isInitAuthorizationExpired(swap.data, swap);
87
+ const isSignatureExpired = yield swapContract.isInitAuthorizationExpired(swap.data, swap);
88
88
  if (isSignatureExpired) {
89
89
  const isCommitted = yield swapContract.isCommited(swap.data);
90
90
  if (!isCommitted) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/lp-lib",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
4
4
  "description": "Main functionality implementation for atomiq LP node",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -130,7 +130,7 @@ export class ToBtcAbs extends ToBtcBaseSwapHandler<ToBtcSwapAbs, ToBtcSwapState>
130
130
  const {swapContract, signer} = this.getChain(swap.chainIdentifier);
131
131
 
132
132
  if(swap.state===ToBtcSwapState.SAVED) {
133
- const isSignatureExpired = swapContract.isInitAuthorizationExpired(swap.data, swap);
133
+ const isSignatureExpired = await swapContract.isInitAuthorizationExpired(swap.data, swap);
134
134
  if(isSignatureExpired) {
135
135
  const isCommitted = await swapContract.isCommited(swap.data);
136
136
  if(!isCommitted) {