@multiplechain/bitcoin 0.1.17 → 0.1.18

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "namespace": "multiplechain",
3
3
  "name": "@multiplechain/bitcoin",
4
- "version": "0.1.17",
4
+ "version": "0.1.18",
5
5
  "description": "Bitcoin JS provider",
6
6
  "scripts": {
7
7
  "serve": "parcel test.html --no-cache --dist-dir test",
@@ -118,6 +118,8 @@ class Transaction {
118
118
  timer = this.timer || timer;
119
119
  try {
120
120
 
121
+ await new Promise(r => setTimeout(r, (timer*1000)));
122
+
121
123
  await this.getData();
122
124
 
123
125
  let result = null;
@@ -130,8 +132,6 @@ class Transaction {
130
132
  return result;
131
133
  }
132
134
 
133
- await new Promise(r => setTimeout(r, (timer*1000)));
134
-
135
135
  return this.validate(timer);
136
136
  } catch (error) {
137
137